From 72943b2c720c1d94b145b4fa61bfb89d65d4ef9c Mon Sep 17 00:00:00 2001 From: om Date: Wed, 25 Jan 2006 20:24:46 +0000 Subject: 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 --- src/modules/m_sslmodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_sslmodes.cpp') 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) -- cgit v1.2.3