summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-09 16:09:38 +0200
committerattilamolnar <attilamolnar@hush.com>2012-09-13 18:51:28 +0200
commit4af5388354b90420aff1780efe909d62da1fb989 (patch)
tree20b1c2e13f3054a25676affecba7b868372910eb /src
parent9c06f6ec4894cb3ad5cfae6a8a7e09e34370a54e (diff)
m_dnsbl Display <unknown> as the user's nick when annoucing the dnsbl result and the user has an empty nick
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_dnsbl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index f7f591cb5..645949006 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -185,7 +185,7 @@ class DNSBLResolver : public Resolver
break;
}
- ServerInstance->SNO->WriteGlobalSno('a', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", them->GetFullRealHost().c_str(), ConfEntry->domain.c_str(), (ConfEntry->type==DNSBLConfEntry::A_BITMASK) ? bitmask : record);
+ ServerInstance->SNO->WriteGlobalSno('a', "Connecting user %s%s detected as being on a DNS blacklist (%s) with result %d", them->nick.empty() ? "<unknown>" : "", them->GetFullRealHost().c_str(), ConfEntry->domain.c_str(), (ConfEntry->type==DNSBLConfEntry::A_BITMASK) ? bitmask : record);
}
else
ConfEntry->stats_misses++;