From 929cd28544c59d122a8d36b2b5e3a394aa03108b Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 16 Apr 2009 15:51:05 +0000 Subject: Convert snomask 'A' into snomask 'a' for local announcements, add snomask 'A' for remote announcements. Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822, reported by Taros We really need a wrapper to use these, but, for now it's usable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 4a7a8931f..be2e86eb5 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -154,7 +154,7 @@ class DNSBLResolver : public Resolver break; } - ServerInstance->SNO->WriteToSnoMask('A', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", them->GetFullRealHost().c_str(), ConfEntry->name.c_str(), bitmask); + ServerInstance->SNO->WriteToSnoMask('a', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", them->GetFullRealHost().c_str(), ConfEntry->name.c_str(), bitmask); } else ConfEntry->stats_misses++; @@ -260,25 +260,25 @@ class ModuleDNSBL : public Module /* yeah, logic here is a little messy */ if ((e->bitmask <= 0) && (DNSBLConfEntry::A_BITMASK == e->type)) { - ServerInstance->SNO->WriteToSnoMask('A', "DNSBL(#%d): invalid bitmask",i); + ServerInstance->SNO->WriteToSnoMask('a', "DNSBL(#%d): invalid bitmask",i); } else if (e->name.empty()) { - ServerInstance->SNO->WriteToSnoMask('A', "DNSBL(#%d): Invalid name",i); + ServerInstance->SNO->WriteToSnoMask('a', "DNSBL(#%d): Invalid name",i); } else if (e->domain.empty()) { - ServerInstance->SNO->WriteToSnoMask('A', "DNSBL(#%d): Invalid domain",i); + ServerInstance->SNO->WriteToSnoMask('a', "DNSBL(#%d): Invalid domain",i); } else if (e->banaction == DNSBLConfEntry::I_UNKNOWN) { - ServerInstance->SNO->WriteToSnoMask('A', "DNSBL(#%d): Invalid banaction", i); + ServerInstance->SNO->WriteToSnoMask('a', "DNSBL(#%d): Invalid banaction", i); } else { if (e->reason.empty()) { - ServerInstance->SNO->WriteToSnoMask('A', "DNSBL(#%d): empty reason, using defaults",i); + ServerInstance->SNO->WriteToSnoMask('a', "DNSBL(#%d): empty reason, using defaults",i); e->reason = "Your IP has been blacklisted."; } -- cgit v1.2.3