X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-op.c;h=ac477793c0ef1aad708607dce89dde74b3a93e47;hb=fa7bb279;hp=e3744a272b5da168ce8fb225cf981d043167a660;hpb=e2aacff7d4f126ce6a577ea4df7b49dd83b7355b;p=ngircd-alex.git diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index e3744a27..ac477793 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc-op.c,v 1.16 2006/08/12 11:58:21 fw Exp $"; +static char UNUSED id[] = "$Id: irc-op.c,v 1.17 2006/12/07 17:57:20 fw Exp $"; #include "imp.h" #include @@ -99,11 +99,12 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req ) if( Channel_IsMemberOf( chan, target )) return IRC_WriteStrClient( from, ERR_USERONCHANNEL_MSG, Client_ID( from ), Req->argv[0], Req->argv[1] ); /* If the target user is banned on that channel: remember invite */ - if( Lists_CheckBanned( target, chan )) remember = true; + if( Lists_Check(Channel_GetListBans(chan), target )) remember = true; if (remember) { /* We must remember this invite */ - if( ! Lists_AddInvited( Client_Mask( target ), chan, true)) return CONNECTED; + if( ! Channel_AddInvite(chan, Client_Mask( target ), true)) + return CONNECTED; } }