summary refs log tree commit diff stats
path: root/src/common/proto-irc.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-18 22:09:44 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-18 22:09:44 +0200
commit9d717ffee9d3ebb88c08312a3c8bd20f24c1dd8e (patch)
treefea8613b1c703934570b7461bf2c57243ec28026 /src/common/proto-irc.c
parentbac96d1fa8fb5c6ffd8715a25400e7759c153a21 (diff)
Fix text event for erroneous nicks
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r--src/common/proto-irc.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index 53916484..d3a17f55 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -835,17 +835,26 @@ process_numeric (session * sess, int n,
 		inbound_login_end (sess, text);
 		break;
 
-	case 433:	/* nickname in use */
 	case 432:	/* erroneous nickname */
 		if (serv->end_of_motd)
+		{
+			goto def;
+		}
+		inbound_next_nick (sess,  word[4], 1);
+		break;
+
+	case 433:	/* nickname in use */
+		if (serv->end_of_motd)
+		{
 			goto def;
-		inbound_next_nick (sess,  word[4]);
+		}
+		inbound_next_nick (sess,  word[4], 0);
 		break;
 
 	case 437:
 		if (serv->end_of_motd || is_channel (serv, word[4]))
 			goto def;
-		inbound_next_nick (sess, word[4]);
+		inbound_next_nick (sess, word[4], 0);
 		break;
 
 	case 471: