From 392c7828b21d2b0664ec705e99969f54fdaa5566 Mon Sep 17 00:00:00 2001 From: om Date: Thu, 26 Jan 2006 00:23:09 +0000 Subject: Use InsertMode() and add vendor flag git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2911 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banexception.cpp | 4 ++-- src/modules/m_inviteexception.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index cb6e57849..fa0ff4c1d 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -33,7 +33,7 @@ public: virtual void On005Numeric(std::string &output) { output.append(" EXCEPTS=e"); - output.insert(output.find("CHANMODES=", 0)+10, "e"); + InsertMode(output, "e", 1); } virtual int OnCheckBan(userrec* user, chanrec* chan) @@ -58,7 +58,7 @@ public: virtual Version GetVersion() { - return Version(1, 0, 0, 2, VF_STATIC); + return Version(1, 0, 0, 3, VF_STATIC | VF_VENDOR); } }; diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 06ce93a57..b3104d3d2 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -31,7 +31,7 @@ public: virtual void On005Numeric(std::string &output) { output.append(" INVEX=I"); - output.insert(output.find("CHANMODES=", 0)+10, "I"); + InsertMode(output, "I", 1); } virtual int OnCheckInvite(userrec* user, chanrec* chan) @@ -59,7 +59,7 @@ public: virtual Version GetVersion() { - return Version(1, 0, 0, 2, VF_STATIC); + return Version(1, 0, 0, 3, VF_VENDOR | VF_STATIC); } }; -- cgit v1.2.3