summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Voss <DukePyrolator@anope.org>2012-01-21 17:04:59 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2012-01-21 17:05:08 -0500
commitb2331d74585aa59f35341a526685a1739cf9d40e (patch)
treeab93f70e60b0ae1e952b976f559db4c9243aafa4
parent22738bad54cb5fba35f31e545d2489ab1f2de5bd (diff)
Make m_shun work on aliases
-rw-r--r--src/modules/m_shun.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 6d7f12562..e11aa9956 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -202,6 +202,12 @@ class ModuleShun : public Module
ServerInstance->XLines->UnregisterFactory(&f);
}
+ void Prioritize()
+ {
+ Module* alias = ServerInstance->Modules->Find("m_alias.so");
+ ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, &alias);
+ }
+
virtual ModResult OnStats(char symbol, User* user, string_list& out)
{
if (symbol != 'H')