]> jfr.im git - solanum.git/commitdiff
Hide cmode +r from 005 if there is no service{} block.
authorJilles Tjoelker <redacted>
Tue, 11 Mar 2008 22:56:23 +0000 (23:56 +0100)
committerJilles Tjoelker <redacted>
Tue, 11 Mar 2008 22:56:23 +0000 (23:56 +0100)
src/supported.c

index ea7a3070104a2e9bf4bc90ffd64cfc07ec64446b..fe90d7976a9903e4e8816397c0beba4916d7bde9 100644 (file)
@@ -211,10 +211,11 @@ isupport_chanmodes(void *ptr)
 {
        static char result[80];
 
-       ircsnprintf(result, sizeof result, "%s%sbq,k,%slj,imnpstrcgzLP%s",
+       ircsnprintf(result, sizeof result, "%s%sbq,k,%slj,imnpst%scgzLP%s",
                        ConfigChannel.use_except ? "e" : "",
                        ConfigChannel.use_invex ? "I" : "",
                        ConfigChannel.use_forward ? "f" : "",
+                       dlink_list_length(&service_list) ? "r" : "",
                        ConfigChannel.use_forward ? "QF" : "");
        return result;
 }