added user registered event, tidied up helper functions and added automatic auth...
[NeonServV5.git] / src / event_neonspam_join.c
index 1578a0154ec551d82367749ad631cc7f62288f33..ce29783c215db4ca4a1cc308407e1889ac0f1cfc 100644 (file)
@@ -62,7 +62,7 @@ static USERAUTH_CALLBACK(neonspam_event_join_nick_lookup) {
 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;