]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Away status texts set due to "a"-Modes received from other servers have
authorAlexander Barton <alex@barton.de>
Sat, 14 May 2005 20:29:34 +0000 (20:29 +0000)
committerAlexander Barton <alex@barton.de>
Sat, 14 May 2005 20:29:34 +0000 (20:29 +0000)
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

index b1a91dbc25811725abb482899c91e6ba020a0ea7..a3205b50f346f610bfca6917f19fd59aff32383f 100644 (file)
@@ -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;