added user registered event, tidied up helper functions and added automatic auth...
[NeonServV5.git] / src / event_neonspam_chanmsg.c
index 2d2978ba349181c58d7ec5a9bd13e55f392c0b21..f5035966ea9680e42a25729acdfd86535d5382db 100644 (file)
@@ -166,7 +166,7 @@ static void neonspam_event_chanmsg_punish(struct ClientSocket *client, struct Ch
     loadChannelSettings(chanuser->chan);
     int uaccess = 0;
     if(chanuser->user->flags & USERFLAG_ISAUTHED)
-        uaccess = getChannelAccess(chanuser->user, chanuser->chan, 0);
+        uaccess = getChannelAccess(chanuser->user, chanuser->chan);
     char reason[MAXLEN];
     reason[0] = '\0';
     int punishment = 0;