else data++;
}
if (secs)
+
{
/* Set up the flood parameters for this channel */
int njoins = atoi(joins);
{
jf = new JoinFlood(ServerInstance);
- ServerInstance->AddMode(jf, 'j');
+ if (!ServerInstance->AddMode(jf, 'j'))
+ throw ModuleException("Could not add new modes!");
}
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs)