};
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
loadNeonSpamSettings(chanuser->chan);
static void neonspam_event_join_punish(struct ClientSocket *client, struct ChanUser *chanuser, struct NeonSpamSettings *settings, int action) {
int uaccess = 0;
if(chanuser->user->flags & USERFLAG_ISAUTHED)
- uaccess = getChannelAccess(chanuser->user, chanuser->chan, 0);
+ uaccess = getChannelAccess(chanuser->user, chanuser->chan);
if(uaccess >= settings->exceptlevel[SPAMSETTINGS_JOINEXCINDEX]) return;
//scanops / scanvoiced
MYSQL_RES *res;