ircd: get_channel_access(): do not derive channel pointer from membership

This commit is contained in:
William Pitcock 2016-01-13 22:16:44 -06:00
parent 633531a4aa
commit 3ee43bcf29
5 changed files with 10 additions and 10 deletions

View file

@ -120,7 +120,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
}
if(((chptr->mode.mode & MODE_TOPICLIMIT) == 0 ||
get_channel_access(source_p, msptr, MODE_ADD, NULL) >= CHFL_CHANOP) &&
get_channel_access(source_p, chptr, msptr, MODE_ADD, NULL) >= CHFL_CHANOP) &&
(!MyClient(source_p) ||
can_send(chptr, source_p, msptr)))
{