summaryrefslogtreecommitdiff
path: root/src/modules/m_sslmodes.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 20:24:46 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 20:24:46 +0000
commit72943b2c720c1d94b145b4fa61bfb89d65d4ef9c (patch)
tree3ce7e72caf2b5c8a4ff7d8f9d58fa865f3439fd6 /src/modules/m_sslmodes.cpp
parent5938aba62fa74ebf04d07abbd49cb813e6dbf026 (diff)
Add InsertMode function to helperfuncs.(cpp|h) for easily adding modes to the CHANMODES section of the 005 numeric
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2897 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r--src/modules/m_sslmodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index 1a7f0670b..3ed40108d 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -24,7 +24,7 @@ class ModuleSSLModes : public Module
virtual void On005Numeric(std::string &output)
{
- output.insert(output.find(" ", output.find("CHANMODES=", 0)), "z");
+ InsertMode(output, "z", 4);
}
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)