extensions/extb_channel: Allow the channel itself as target even if +s/+p.

This commit is contained in:
Jilles Tjoelker 2014-06-21 21:48:37 +02:00
parent 83aa910fb9
commit 3bfac098f7

View file

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