From 3bfac098f7f122ae5e8ea512cef1eaa99ae82c66 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 21 Jun 2014 21:48:37 +0200 Subject: [PATCH] extensions/extb_channel: Allow the channel itself as target even if +s/+p. --- extensions/extb_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/extb_channel.c b/extensions/extb_channel.c index 9bf09b36..a40a05f4 100644 --- a/extensions/extb_channel.c +++ b/extensions/extb_channel.c @@ -48,7 +48,7 @@ static int eb_channel(const char *data, struct Client *client_p, if (chptr->chname[0] == '#' && data[0] == '&') return EXTBAN_INVALID; /* privacy! don't allow +s/+p channels to influence another channel */ - if (!PubChannel(chptr2)) + if (!PubChannel(chptr2) && chptr2 != chptr) return EXTBAN_INVALID; return IsMember(client_p, chptr2) ? EXTBAN_MATCH : EXTBAN_NOMATCH; }