diff 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
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Nov 11 14:36:48 2007 +0100
+++ b/mcabber/src/commands.c	Sun Nov 11 16:07:32 2007 +0100
@@ -3161,12 +3161,6 @@
   char *fjid, *policy;
   enum otr_policy p;
 
-  if (!otr_enabled()) {
-    scr_LogPrint(LPRINT_LOGNORM,
-                 "Warning: OTR hasn't been enabled -- command ignored.");
-    return;
-  }
-
   paramlst = split_arg(arg, 2, 0); // [jid|default] policy
   fjid = *paramlst;
   policy = *(paramlst+1);