+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
#include "inspircd.h"
#include "inspircd_io.h"
#include "inspircd_util.h"
break;
default:
- log(DEBUG,"Preprocessing custom mode %c",modechar);
+ log(DEBUG,"Preprocessing custom mode %c: modelist: %s",modechar,chan->custom_modes);
string_list p;
p.clear();
if (((!strchr(chan->custom_modes,modechar)) && (!mdir)) || ((strchr(chan->custom_modes,modechar)) && (mdir)))
bool handled = false;
if (param>=pcnt)
{
- log(DEBUG,"Not enough parameters for module-mode %c",modechar);
// we're supposed to have a parameter, but none was given... so dont handle the mode.
if (((ModeDefinedOn(modechar,MT_CHANNEL)>0) && (mdir)) || ((ModeDefinedOff(modechar,MT_CHANNEL)>0) && (!mdir)))
{
+ log(DEBUG,"Not enough parameters for module-mode %c",modechar);
handled = true;
param++;
}
}
}
}
+ else
+ {
+ WriteServ(user->fd,"472 %s %c :is unknown mode char to me",user->nick,modechar);
+ }
break;
}