X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fevent_neonspam_join.c;h=3b31b926f3461818b995fed1eb207af0ab7eeaf3;hb=bb5692b9cbff069abbf9573c81e86c3cd2061ceb;hp=a192d792c284154c3a74be5d51c971c2f8fd1a70;hpb=1f99358c754184cce8e0624633eddc5f402ed5d3;p=NeonServV5.git diff --git a/src/event_neonspam_join.c b/src/event_neonspam_join.c index a192d79..3b31b92 100644 --- a/src/event_neonspam_join.c +++ b/src/event_neonspam_join.c @@ -1,5 +1,5 @@ -/* event_neonspam_join.c - NeonServ v5.2 - * Copyright (C) 2011 Philipp Kreil (pk910) +/* event_neonspam_join.c - NeonServ v5.3 + * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +30,11 @@ 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) { + 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;