]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Fix small bug in the VERSION/RPL_MYINFO stuff, as pointed out by init.
authorB.Greenham <redacted>
Wed, 19 Jan 2011 16:28:16 +0000 (11:28 -0500)
committerB.Greenham <redacted>
Wed, 19 Jan 2011 16:28:16 +0000 (11:28 -0500)
src/chmode.c
src/supported.c

index f0ec84b6e331164f3c6c974f3b0dcb1a2f03bc91..373a20e8a608646d53064c6e0cf261468aae3fd0 100644 (file)
@@ -152,8 +152,8 @@ construct_cflag_param_string(void)
                        ConfigChannel.use_except ? "e" : "",
                        ConfigChannel.use_forward ? "f" : "",
                        ConfigChannel.use_halfop ? "h" : "",
-                       strcasecmp(ConfigChannel.disabledmodes, "j") ? "" : "j",
-                       strcasecmp(ConfigChannel.disabledmodes, "q") ? "" : "q",
+                       strchr(ConfigChannel.disabledmodes, "j") ? "" : "j",
+                       strchr(ConfigChannel.disabledmodes, "q") ? "" : "q",
                        ConfigChannel.use_invex ? "I" : "");
 }
 
index abeb60cf38784db4736594728ee79701470ddf3c..6fd8c3998201f7aaf52657e689550cde8788750c 100644 (file)
@@ -238,9 +238,9 @@ isupport_chanmodes(const void *ptr)
        rb_snprintf(result, sizeof result, "%s%sb%s,k,%sl%s,%s",
                        ConfigChannel.use_except ? "e" : "",
                        ConfigChannel.use_invex ? "I" : "",
-                       strcasecmp(ConfigChannel.disabledmodes, "q") ? "" : "q",
+                       strchr(ConfigChannel.disabledmodes, "q") ? "" : "q",
                        ConfigChannel.use_forward ? "f" : "",
-                       strcasecmp(ConfigChannel.disabledmodes, "j") ? "" : "j",
+                       strchr(ConfigChannel.disabledmodes, "j") ? "" : "j",
                        cflagsbuf);
        return result;
 }