From: pk910 Date: Sat, 3 Nov 2012 13:59:34 +0000 (+0100) Subject: fixed small declaration error caused by da9c3e6 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=5e6227dda1badbb4928d8b5ee01c646f813c972e fixed small declaration error caused by da9c3e6 --- 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)) {