]> jfr.im git - solanum.git/blobdiff - extensions/m_webirc.c
Make new_local_user hooks handle dead clients
[solanum.git] / extensions / m_webirc.c
index 99ae7d42cf501bde5c8cbf387cc417f89c84ff55..f169435d77a07f695e9095ea02ac2124e3407d4c 100644 (file)
@@ -191,6 +191,9 @@ new_local_user(void *data)
        struct Client *source_p = data;
        struct ConfItem *aconf = source_p->localClient->att_conf;
 
+       if (aconf == NULL)
+               return;
+
        if (!irccmp(aconf->info.name, "webirc."))
                exit_client(source_p, source_p, &me, "Cannot log in using a WEBIRC block");
 }