about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2005-05-14 20:29:34 +0000
committerAlexander Barton <alex@barton.de>2005-05-14 20:29:34 +0000
commitdd9b4bc956aa01c9d7c33b7e60b653c88ccaf707 (patch)
tree8645eda88febab23d702ffd8cd205e6bcdd1b738
parent6f97dd4938e35ce01786ca3826db416f44ec7156 (diff)
downloadngircd-dd9b4bc956aa01c9d7c33b7e60b653c88ccaf707.tar.gz
ngircd-dd9b4bc956aa01c9d7c33b7e60b653c88ccaf707.zip
Away status texts set due to "a"-Modes received from other servers have
been fixed: the status text of the server has been set instead of the
away status text of the client (most probably introduced by patch 1.36).
-rw-r--r--src/ngircd/irc-mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c
index b1a91dbc..a3205b50 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.41 2005/04/27 07:38:00 alex Exp $";
+static char UNUSED id[] = "$Id: irc-mode.c,v 1.42 2005/05/14 20:29:34 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -166,7 +166,7 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Origin, CLIENT *Target )
 				if( Client_Type( Client ) == CLIENT_SERVER )
 				{
 					x[0] = 'a';
-					Client_SetAway( Client, DEFAULT_AWAY_MSG );
+					Client_SetAway( Origin, DEFAULT_AWAY_MSG );
 				}
 				else ok = IRC_WriteStrClient( Origin, ERR_NOPRIVILEGES_MSG, Client_ID( Origin ));
 				break;