]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/chanserv.c
Added new event hooks system and started migrating events to new system
[irc/evilnet/x3.git] / src / chanserv.c
index ae5f28dfa6ebb1f0c31bd7b38c606685a43fcd31..2303a76196450c8cc16ceeb9a9f462ec431aaf57 100644 (file)
@@ -679,7 +679,7 @@ enum note_visible_type
     NOTE_VIS_PRIVILEGED
 };
 
-struct io_fd *socket_io_fd;
+extern struct io_fd *socket_io_fd;
 extern struct cManagerNode cManager;
 
 struct note_type
@@ -8130,9 +8130,9 @@ static CHANSERV_FUNC(cmd_8ball)
 /*** COLOR *****/
     if((word2) && strcasecmp(word1, "what") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
         eightball(eb, 1, accum);
-    else if((word3) && strcasecmp(word1, "what's") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
+    else if((word3) && strcasecmp(word1, "what's") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word3, "color") == 0) || (strcasecmp(word3, "colour") == 0)))
         eightball(eb, 1, accum);
-    else if((word3) && strcasecmp(word1, "whats") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
+    else if((word3) && strcasecmp(word1, "whats") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word3, "color") == 0) || (strcasecmp(word3, "colour") == 0)))
         eightball(eb, 1, accum);
 /*** LOCATION *****/
     else if(