src/irc.c
changeset 1 5d249c79842d
parent 0 586472add385
child 2 6a2e88214b80
--- a/src/irc.c
+++ b/src/irc.c
@@ -103,6 +103,10 @@
             break;
         }
 
+        if (strstr (msg, ":You are now logged in.") != NULL) {
+            break;
+        }
+
         if (strstr (msg, ":Password Incorrect") != NULL) {
             return IRC_LOGIN_ERROR;
         }
@@ -309,6 +313,11 @@
                 message->line = strtok (NULL, "\r\n");
                 return command;
                 break;
+			case 901: /* notify or some crap */
+				message->channel = strtok (message->line, " ");
+				message->line = strtok(NULL, "\r\n");
+				return command;
+				break;
             default:
                 printf ("DEBUG   %s", line);
                 printf ("Unknown Value: %d\n", value);