Hide cmode +r from 005 if there is no service{} block.

This commit is contained in:
Jilles Tjoelker 2008-03-11 23:56:23 +01:00
parent 428b796aa4
commit 7478545cb2

View 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;
}