summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-10 17:06:08 -0500
committerAdam <Adam@anope.org>2012-01-10 17:06:08 -0500
commit1e9d88af011fd14efe7db95a59d12cd634b492f5 (patch)
treea92e49910e20143d19466600bace09879e22b20b /modules/protocol/unreal.cpp
parent815e140ecf7bac0db41fd29d7c4f7298d4eddb2b (diff)
Add support for Unreals extban ~a:
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r--modules/protocol/unreal.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 0b34bccd1..1267a0452 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -391,6 +391,13 @@ class UnrealExtBan : public ChannelModeList
if (u->HasMode(UMODE_REGISTERED) && mask.equals_ci(u->nick))
return true;
}
+ else if (mask.find("~a:") == 0)
+ {
+ Anope::string real_mask = mask.substr(3);
+
+ if (u->Account() && Anope::Match(u->Account()->display, real_mask))
+ return true;
+ }
return false;
}