Use get_channel_access() for KICK/TOPIC.
This commit is contained in:
parent
3c52f289b1
commit
0343b3c563
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
return 0;
|
||||
}
|
||||
|
||||
if(!is_chanop(msptr))
|
||||
if(get_channel_access(source_p, msptr) < CHFL_CHANOP)
|
||||
{
|
||||
if(MyConnect(source_p))
|
||||
{
|
||||
|
|
|
@ -125,7 +125,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
}
|
||||
|
||||
if(((chptr->mode.mode & MODE_TOPICLIMIT) == 0 ||
|
||||
is_chanop(msptr)) &&
|
||||
get_channel_access(source_p, msptr) < CHFL_CHANOP) &&
|
||||
(!MyClient(source_p) ||
|
||||
can_send(chptr, source_p, msptr)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue