Don't bother running the get_channel_access hook if the client is not really on the channel.
This commit is contained in:
parent
b697041e2a
commit
96d2612765
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ get_channel_access(struct Client *source_p, struct membership *msptr)
|
||||||
if(!MyClient(source_p))
|
if(!MyClient(source_p))
|
||||||
return CHFL_CHANOP;
|
return CHFL_CHANOP;
|
||||||
|
|
||||||
|
if (msptr == NULL)
|
||||||
|
return CHFL_PEON;
|
||||||
|
|
||||||
moduledata.client = source_p;
|
moduledata.client = source_p;
|
||||||
moduledata.chptr = msptr->chptr;
|
moduledata.chptr = msptr->chptr;
|
||||||
moduledata.msptr = msptr;
|
moduledata.msptr = msptr;
|
||||||
|
|
Loading…
Reference in a new issue