X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fngircd%2Firc-op.c;h=f1c3fcd4a9e1068c467abd06b988aff7cbd9d8e9;hb=8adff5922376676c2eeb49de1cbab86cc345b887;hp=648da5c3c24d051961f3b39555f6bd18ff94a5af;hpb=ff2c1efae8b8b1bf30013123bb17243dc682f7d3;p=ngircd-alex.git diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index 648da5c3..f1c3fcd4 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.12 2003/12/05 11:57:28 alex Exp $"; +static char UNUSED id[] = "$Id: irc-op.c,v 1.14 2005/03/19 18:43:48 fw Exp $"; #include "imp.h" #include @@ -35,7 +35,7 @@ static char UNUSED id[] = "$Id: irc-op.c,v 1.12 2003/12/05 11:57:28 alex Exp $"; #include "irc-op.h" -GLOBAL BOOLEAN +GLOBAL bool IRC_KICK( CLIENT *Client, REQUEST *Req ) { CLIENT *target, *from; @@ -59,12 +59,12 @@ IRC_KICK( CLIENT *Client, REQUEST *Req ) } /* IRC_KICK */ -GLOBAL BOOLEAN +GLOBAL bool IRC_INVITE( CLIENT *Client, REQUEST *Req ) { CHANNEL *chan; CLIENT *target, *from; - BOOLEAN remember = FALSE; + bool remember = false; assert( Client != NULL ); assert( Req != NULL ); @@ -92,19 +92,19 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req ) { /* Yes. The user must be channel operator! */ if( ! strchr( Channel_UserModes( chan, from ), 'o' )) return IRC_WriteStrClient( from, ERR_CHANOPRIVSNEEDED_MSG, Client_ID( from ), Channel_Name( chan )); - remember = TRUE; + remember = true; } /* Is the target user already member of the channel? */ 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_CheckBanned( target, chan )) remember = true; if( remember ) { /* We must memember this invite */ - if( ! Lists_AddInvited( from, Client_Mask( target ), chan, TRUE )) return CONNECTED; + if( ! Lists_AddInvited( Client_Mask( target ), chan, true)) return CONNECTED; } }