-/* event_neonspam_join.c - NeonServ v5.2
+/* event_neonspam_join.c - NeonServ v5.3
* Copyright (C) 2011 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
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) {
+ requestOp(client->user, chanuser->chan);
+ return;
+ }
+ if(chanuser->user->flags & USERFLAG_ISBOT) return;
loadNeonSpamSettings(chanuser->chan);
struct NeonSpamSettings *settings = chanuser->chan->spam_settings;
if(!settings || !(settings->flags & SPAMSETTINGS_JOINSCAN)) return;