summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_quietban.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_quietban.cpp b/src/modules/m_quietban.cpp
index 01b2dd6df..8ea514220 100644
--- a/src/modules/m_quietban.cpp
+++ b/src/modules/m_quietban.cpp
@@ -21,7 +21,7 @@ class ModuleQuietBan : public Module
public:
ModuleQuietBan(InspIRCd* Me) : Module(Me)
{
- Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_On005Numeric };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
@@ -61,6 +61,14 @@ class ModuleQuietBan : public Module
return 0;
}
+
+ virtual void On005Numeric(std::string &output)
+ {
+ if (output.find(" EXTBAN=:") == std::string::npos)
+ output.append(" EXTBAN=:q");
+ else
+ output.insert(output.find(" EXTBAN=:") + 8, "q");
+ }
};