]> jfr.im git - solanum.git/commitdiff
Don't bother running the get_channel_access hook if the client is not really on the...
authorWilliam Pitcock <redacted>
Wed, 15 Dec 2010 05:04:11 +0000 (23:04 -0600)
committerWilliam Pitcock <redacted>
Wed, 15 Dec 2010 05:04:11 +0000 (23:04 -0600)
src/chmode.c

index 1976765f571a128773de79ce9d050c7f660607b1..8008a7934171f41ddddf87968d8c56685b6d11b2 100644 (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;