summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-13 16:36:36 -0500
committerAdam <Adam@anope.org>2010-12-13 16:36:36 -0500
commit49d3c97b677f319460146803004066dfd3d19089 (patch)
treee8408660141f958bdc9cfac8fbad4a67553e0a40 /modules/core
parent97467cb2c85832c10da11364e0517ed3c4453ddb (diff)
Bug #1079 - Don't use users real host and IPs when matching against
bans and excepts, except when a user is unbanning themselves, in an attempt to prevent people from gaining other users IPs. This removes support for Unreal and Bahamuts SVSMode -b because it will unban users by real host and IP.
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/cs_unban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/cs_unban.cpp b/modules/core/cs_unban.cpp
index df5d2877e..4460d9a9c 100644
--- a/modules/core/cs_unban.cpp
+++ b/modules/core/cs_unban.cpp
@@ -48,7 +48,7 @@ class CommandCSUnban : public Command
return MOD_CONT;
}
- common_unban(ci, u2);
+ common_unban(ci, u2, u == u2);
if (u2 == u)
source.Reply(CHAN_UNBANNED, c->name.c_str());
else