No such username(402) status code updated
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Sat, 27 Feb 2010 18:58:24 +0100
changeset 50 412ac658eb97
parent 49 59b09b0aeb96
child 51 5d9aed3948a6
No such username(402) status code updated committer: Markus Bröker <mbroeker@largo.homelinux.org>
src/irc.c
--- a/src/irc.c
+++ b/src/irc.c
@@ -137,7 +137,7 @@
             return IRC_GENERAL_ERROR;
         }
 
-        if (strstr (msg, "is not registered") != NULL) {
+        if (strstr (msg, "is not a registered") != NULL) {
             return IRC_LOGIN_ERROR;
         }
         if (strstr (msg, ":Nickname is already in use") != NULL) {
@@ -325,6 +325,7 @@
             case 376:          /* END OF MOTD */
                 return command;
             case 401:          /* NO SUCH NICK/CHANNEL */
+            case 402:          /* NO SUCH USER */
             case 403:          /* THAT CHANNEL DOESN'T EXIST */
             case 412:          /* NO TEXT TO SEND */
             case 441:          /* THEY AREN'T ON THIS CHANNEL */