about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-02-26 22:06:40 +0000
committerAlexander Barton <alex@barton.de>2002-02-26 22:06:40 +0000
commit93a52dfab86da096e629a8e2f86229245378ac68 (patch)
tree0f46536868c241077997205973f160642be2d04c
parent08d43d5f67fb9b5238869a7e58e2804847bc86b2 (diff)
downloadngircd-93a52dfab86da096e629a8e2f86229245378ac68.tar.gz
ngircd-93a52dfab86da096e629a8e2f86229245378ac68.zip
- Nick-Aenderungen werden nun wieder korrekt ins Logfile geschrieben.
-rw-r--r--src/ngircd/irc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 1f1897e6..2a8a6149 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: irc.c,v 1.69 2002/02/26 20:52:40 alex Exp $
+ * $Id: irc.c,v 1.70 2002/02/26 22:06:40 alex Exp $
  *
  * irc.c: IRC-Befehle
  *
  * $Log: irc.c,v $
+ * Revision 1.70  2002/02/26 22:06:40  alex
+ * - Nick-Aenderungen werden nun wieder korrekt ins Logfile geschrieben.
+ *
  * Revision 1.69  2002/02/26 20:52:40  alex
  * - VERSION wurde falsch weitergeleitet und beantwortet (Prefix nicht beachtet)
  *
@@ -895,9 +898,6 @@ GLOBAL BOOLEAN IRC_NICK( CLIENT *Client, REQUEST *Req )
 		if( Client_Type( Client ) == CLIENT_USER ) IRC_WriteStrClientPrefix( Client, Client, "NICK :%s", Req->argv[0] );
 		IRC_WriteStrServersPrefix( Client, target, "NICK :%s", Req->argv[0] );
 		IRC_WriteStrRelatedPrefix( target, target, FALSE, "NICK :%s", Req->argv[0] );
-	
-		/* Client-Nick registrieren */
-		Client_SetID( target, Req->argv[0] );
 
 		if(( Client_Type( target ) != CLIENT_USER ) && ( Client_Type( target ) != CLIENT_SERVER ))
 		{
@@ -908,6 +908,9 @@ GLOBAL BOOLEAN IRC_NICK( CLIENT *Client, REQUEST *Req )
 		}
 		else Log( LOG_INFO, "User \"%s\" changed nick: \"%s\" -> \"%s\".", Client_Mask( target ), Client_ID( target ), Req->argv[0] );
 
+		/* Client-Nick registrieren */
+		Client_SetID( target, Req->argv[0] );
+
 		return CONNECTED;
 	}
 	else if( Client_Type( Client ) == CLIENT_SERVER )