diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-18 22:09:44 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-18 22:09:44 +0200 |
commit | 9d717ffee9d3ebb88c08312a3c8bd20f24c1dd8e (patch) | |
tree | fea8613b1c703934570b7461bf2c57243ec28026 /src/common/proto-irc.c | |
parent | bac96d1fa8fb5c6ffd8715a25400e7759c153a21 (diff) |
Fix text event for erroneous nicks
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 15 |
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: |