Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1362:9ee58f91d19e
Fix otrpolicy from config file (franky)
/otrpolicy could not be used from conf. file since I (Mikael) introduced
the 'otr' option...
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Nov 2007 16:07:32 +0100 |
parents | 8613d3f4ae91 |
children | 32077249de77 |
comparison
equal
deleted
inserted
replaced
1361:0562106d20c1 | 1362:9ee58f91d19e |
---|---|
3159 #ifdef HAVE_LIBOTR | 3159 #ifdef HAVE_LIBOTR |
3160 char **paramlst; | 3160 char **paramlst; |
3161 char *fjid, *policy; | 3161 char *fjid, *policy; |
3162 enum otr_policy p; | 3162 enum otr_policy p; |
3163 | 3163 |
3164 if (!otr_enabled()) { | |
3165 scr_LogPrint(LPRINT_LOGNORM, | |
3166 "Warning: OTR hasn't been enabled -- command ignored."); | |
3167 return; | |
3168 } | |
3169 | |
3170 paramlst = split_arg(arg, 2, 0); // [jid|default] policy | 3164 paramlst = split_arg(arg, 2, 0); // [jid|default] policy |
3171 fjid = *paramlst; | 3165 fjid = *paramlst; |
3172 policy = *(paramlst+1); | 3166 policy = *(paramlst+1); |
3173 | 3167 |
3174 if (!fjid && !policy) { | 3168 if (!fjid && !policy) { |