extensions/extb_channel: Allow the channel itself as target even if +s/+p.
This commit is contained in:
parent
83aa910fb9
commit
3bfac098f7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue