X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fevent_neonserv_mode.c;h=b6d06527e1ca04fdd4ad9470355d726158515159;hp=87d4495f9d4697aad51f82bdd08aaf1e05ecafa2;hb=5e6227dda1badbb4928d8b5ee01c646f813c972e;hpb=ef2f721db1b8f2d42df5483e1d9cd1769103e37c diff --git a/src/modules/NeonServ.mod/event_neonserv_mode.c b/src/modules/NeonServ.mod/event_neonserv_mode.c index 87d4495..b6d0652 100644 --- a/src/modules/NeonServ.mod/event_neonserv_mode.c +++ b/src/modules/NeonServ.mod/event_neonserv_mode.c @@ -201,6 +201,9 @@ static void neonserv_event_mode_async1(struct ClientSocket *client, struct UserN reply(textclient, user, "NS_MODE_CANBAN", chan->name); db_canban = -1; } + char hostmask_buffer[NICKLEN+USERLEN+HOSTLEN+3]; + char usermask[NICKLEN+USERLEN+HOSTLEN+3]; + int match_count = 0; if(db_canban == -1) { if(!neonserv_cmd_mode_botwar_detect(client, user, chan, &botwar_detect_executed)) { if(!add) { @@ -222,9 +225,6 @@ static void neonserv_event_mode_async1(struct ClientSocket *client, struct UserN deop_user = 1; break; } - char hostmask_buffer[NICKLEN+USERLEN+HOSTLEN+3]; - char usermask[NICKLEN+USERLEN+HOSTLEN+3]; - int match_count = 0; carg = make_banmask(carg, hostmask_buffer); if(add) { for(chanuser = getChannelUsers(chan, NULL); chanuser; chanuser = getChannelUsers(chan, chanuser)) {