]> jfr.im git - irc/evilnet/x3.git/commitdiff
Fix for "whats the color" 8ball question formats master origin/HEAD origin/master
authorMatthew Beeching <redacted>
Mon, 18 Dec 2023 16:44:31 +0000 (16:44 +0000)
committerMatthew Beeching <redacted>
Mon, 18 Dec 2023 16:44:31 +0000 (16:44 +0000)
src/chanserv.c

index 5931cd0fc731b9654e409ba6bd5d5cdf5bb52b34..2303a76196450c8cc16ceeb9a9f462ec431aaf57 100644 (file)
@@ -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(