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

@ -114,7 +114,7 @@ m_remove(struct Client *client_p, struct Client *source_p, int parc, const char
return 0;
}
if(get_channel_access(source_p, msptr, MODE_ADD, NULL) < CHFL_CHANOP)
if(get_channel_access(source_p, chptr, msptr, MODE_ADD, NULL) < CHFL_CHANOP)
{
if(MyConnect(source_p))
{