]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_inviteexception.cpp
Improved strhashcomp with no allocations
[user/henk/code/inspircd.git] / src / modules / m_inviteexception.cpp
index 06ce93a579d53715590138c1f3a3497b8ef68bb6..0b80934f74ccafb0f8cf1efbefa151808903d775 100644 (file)
@@ -9,11 +9,14 @@
 
 /* $ModDesc: Provides support for the +I channel mode */
 
-/* Written by Om<om@inspircd.org>, April 2005. */
-/* Based on m_exception, which was originally based on m_chanprotect and m_silence */
-
-// The +I channel mode takes a nick!ident@host, glob patterns allowed,
-// and if a user matches an entry on the +I list then they can join the channel, ignoring if +i is set on the channel
+/*
+ * Written by Om <om@inspircd.org>, April 2005.
+ * Based on m_exception, which was originally based on m_chanprotect and m_silence
+ *
+ * The +I channel mode takes a nick!ident@host, glob patterns allowed,
+ * and if a user matches an entry on the +I list then they can join the channel,
+ * ignoring if +i is set on the channel
+ */
 
 class ModuleInviteException : public ListModeBaseModule
 {
@@ -31,7 +34,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 +62,7 @@ public:
                
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 2, VF_STATIC);
+               return Version(1, 0, 0, 3, VF_VENDOR | VF_STATIC);
        }
 };