Use get_channel_access() for KICK/TOPIC.

This commit is contained in:
William Pitcock 2010-12-07 00:14:42 -06:00
parent 3c52f289b1
commit 0343b3c563
2 changed files with 2 additions and 2 deletions

View file

@ -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))
{

View file

@ -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)))
{