From 7478545cb21cfe4ee1f01d827997dd8b90ca3379 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 11 Mar 2008 23:56:23 +0100 Subject: [PATCH] Hide cmode +r from 005 if there is no service{} block. --- src/supported.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/supported.c b/src/supported.c index ea7a30701..fe90d7976 100644 --- a/src/supported.c +++ b/src/supported.c @@ -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; }