Don't bother running the get_channel_access hook if the client is not really on the channel.

This commit is contained in:
William Pitcock 2010-12-14 23:04:11 -06:00
parent b697041e2a
commit 96d2612765

View file

@ -194,6 +194,9 @@ get_channel_access(struct Client *source_p, struct membership *msptr)
if(!MyClient(source_p))
return CHFL_CHANOP;
if (msptr == NULL)
return CHFL_PEON;
moduledata.client = source_p;
moduledata.chptr = msptr->chptr;
moduledata.msptr = msptr;