X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-mode.c;h=b17fc547d603acdcef61cadc8079cd1e8c90df57;hp=6984409fd9c7e9329e25d7ede8b768f531d26055;hb=25ca2b3cc5b5d92f43591bdb2f0076101fa2b79d;hpb=f7fe170a5ef7dda63b09f82d091542d66eff0689 diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c index 6984409f..b17fc547 100644 --- a/src/ngircd/irc-mode.c +++ b/src/ngircd/irc-mode.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc-mode.c,v 1.18 2002/12/14 13:24:09 alex Exp $"; +static char UNUSED id[] = "$Id: irc-mode.c,v 1.19 2002/12/14 13:36:19 alex Exp $"; #include "imp.h" #include @@ -286,7 +286,7 @@ IRC_MODE( CLIENT *Client, REQUEST *Req ) break; case 'P': /* Persistent channel */ - if( set && ( Conf_MaxPChannels > 0 ) && ( Channel_PCount( ) >= Conf_MaxPChannels )) + if( set && ( ! Client_OperByMe( Client ))) { /* there are too many persistent channels in the network! */ ok = IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client ));