From f1297898f37f28ed3c1c81e075bbbf9794ea878a 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 ea7a307..fe90d79 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; }