From 3179bd3090ead06886d830ac33f540e9a5ee1b9a Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 16 Mar 2006 20:14:46 +0000 Subject: [PATCH] corrected return value (from HEAD) --- src/ngircd/irc-channel.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 3a3470bc..84cd3c10 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc-channel.c,v 1.30.2.1 2006/03/16 20:03:14 fw Exp $"; +static char UNUSED id[] = "$Id: irc-channel.c,v 1.30.2.2 2006/03/16 20:14:46 fw Exp $"; #include "imp.h" #include @@ -90,11 +90,9 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req ) if( Client_Type( Client ) == CLIENT_USER ) { /* Test if the user has reached his maximum channel count */ - if(( Conf_MaxJoins > 0 ) && ( Channel_CountForUser( Client ) >= Conf_MaxJoins )) { - IRC_WriteStrClient( Client, ERR_TOOMANYCHANNELS_MSG, + if(( Conf_MaxJoins > 0 ) && ( Channel_CountForUser( Client ) >= Conf_MaxJoins )) + return IRC_WriteStrClient( Client, ERR_TOOMANYCHANNELS_MSG, Client_ID( Client ), channame ); - return CONNECTED; - } /* Existiert der Channel bereits, oder wird er im Moment neu erzeugt? */ if( is_new_chan )