From dd9b4bc956aa01c9d7c33b7e60b653c88ccaf707 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 14 May 2005 20:29:34 +0000 Subject: [PATCH] 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). --- src/ngircd/irc-mode.c | 4 ++-- 1 file 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 @@ -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;