diff options
| author | Florian Westphal <fw@strlen.de> | 2005-06-04 11:53:24 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2005-06-04 11:53:24 +0000 |
| commit | 517321807ea8c1c8f475f13b2c2bdc336acd795c (patch) | |
| tree | 3f4017f4ec2dcd821d3bbed33ca0926f1d7b48f6 /src | |
| parent | ae98008c1ce4fafad0a0699f7c0388a18bc436c0 (diff) | |
| download | ngircd-517321807ea8c1c8f475f13b2c2bdc336acd795c.tar.gz ngircd-517321807ea8c1c8f475f13b2c2bdc336acd795c.zip | |
Fix Handling of quit messages: always send only one QUIT message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/channel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index f92f20db..56029195 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -17,7 +17,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: channel.c,v 1.47 2005/04/27 07:34:25 alex Exp $"; +static char UNUSED id[] = "$Id: channel.c,v 1.48 2005/06/04 11:53:25 fw Exp $"; #include "imp.h" #include <assert.h> @@ -248,6 +248,8 @@ Channel_Quit( CLIENT *Client, char *Reason ) assert( Client != NULL ); assert( Reason != NULL ); + IRC_WriteStrRelatedPrefix( Client, Client, false, "QUIT :%s", Reason ); + c = My_Channels; while( c ) { @@ -807,7 +809,6 @@ Remove_Client( int Type, CHANNEL *Chan, CLIENT *Client, CLIENT *Origin, char *Re /* QUIT: andere Server wurden bereits informiert, vgl. Client_Destroy(); * hier also "nur" noch alle User in betroffenen Channeln infomieren */ assert( InformServer == false ); - IRC_WriteStrChannelPrefix( Origin, c, Origin, false, "QUIT :%s", Reason ); Log( LOG_DEBUG, "User \"%s\" left channel \"%s\" (%s).", Client_Mask( Client ), c->name, Reason ); break; case REMOVE_KICK: |