Last active
August 29, 2015 14:15
-
-
Save ManiacTwister/4a8ba388fa84f63b08bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit ad5c984c5e53ed26fb71b1bfa8af9bd1da0b7e8d | |
Author: Maniactwister <git@s7t.de> | |
Date: Mon Feb 23 18:06:27 2015 +0100 | |
Fixed dnsbl | |
diff --git a/modules/proxyscan/dnsbl.c b/modules/proxyscan/dnsbl.c | |
index d8f89fc..c10b064 100644 | |
--- a/modules/proxyscan/dnsbl.c | |
+++ b/modules/proxyscan/dnsbl.c | |
@@ -484,6 +484,12 @@ static void dnsbl_hit(user_t *u, struct Blacklist *blptr) | |
svs = service_find("operserv"); | |
+ /* BUGFIX: If the user is already disconnected (for example by the ircd blacklist) return here. */ | |
+ if (u->nick == NULL) | |
+ { | |
+ return; | |
+ } | |
+ | |
if (!strcasecmp("SNOOP", action)) | |
{ | |
slog(LG_INFO, "DNSBL: \2%s\2!%s@%s [%s] is listed in DNS Blacklist %s.", u->nick, u->user, u->host, u->gecos, blptr->host); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment