struct Client *source_p = vdata;
const char *drain_reason = ConfigFileEntry.drain_reason;
+ if (IsAnyDead(source_p))
+ return;
+
if (drain_reason == NULL)
drain_reason = "This server is not accepting connections.";
- if(IsExemptKline(source_p))
+ if (IsExemptKline(source_p))
return;
exit_client(source_p, source_p, &me, drain_reason);
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");
}