]> jfr.im git - irc/atheme/atheme.git/commitdiff
chanserv/moderate: do not crash when processing a channel registration belonging...
authorWilliam Pitcock <redacted>
Sat, 9 Aug 2014 02:47:55 +0000 (21:47 -0500)
committerWilliam Pitcock <redacted>
Sat, 9 Aug 2014 02:47:55 +0000 (21:47 -0500)
modules/chanserv/moderate.c

index e8131cb59011e032783b222d649dff8d5fc494f5..c3b908aba559f585addeaf0147b0035f073aa6ce 100644 (file)
@@ -260,7 +260,7 @@ static void cs_cmd_activate(sourceinfo_t *si, int parc, char *parv[])
        if (chansvs.deftemplates != NULL && *chansvs.deftemplates != '\0')
                metadata_add(mc, "private:templates", chansvs.deftemplates);
 
-       if (MOWGLI_LIST_LENGTH(&mu->logins) > 0)
+       if (mu != NULL && MOWGLI_LIST_LENGTH(&mu->logins) > 0)
        {
                u = mu->logins.head->data;