-/* event_neonspam_join.c - NeonServ v5.3
+/* event_neonspam_join.c - NeonServ v5.4
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
};
static void neonspam_event_join(struct ChanUser *chanuser) {
- if(chanuser->user->flags & USERFLAG_WAS_REGISTRING) return;
struct ClientSocket *client = getChannelBot(chanuser->chan, BOTID);
if(!client) return; //we can't "see" this event
if(chanuser->user == client->user) {
cache->chanuser = chanuser;
cache->settings = settings;
cache->action = result;
- get_userauth(chanuser->user, neonspam_event_join_nick_lookup, cache);
+ get_userauth(chanuser->user, module_id, neonspam_event_join_nick_lookup, cache);
}
}
}
char banidBuf[20];
sprintf(nameBuf, "ban_%d", banid);
sprintf(banidBuf, "%d", banid);
- timeq_add_name(nameBuf, duration, channel_ban_timeout, strdup(banidBuf));
+ timeq_add_name(nameBuf, duration, module_id, channel_ban_timeout, strdup(banidBuf));
}
case 1: //KICKBAN
if(!banmask)