/* $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
{
virtual void On005Numeric(std::string &output)
{
- output.append(" INVEX=999");
- output.insert(output.find("CHANMODES=", 0)+10, "I");
+ output.append(" INVEX=I");
+ InsertMode(output, "I", 1);
}
virtual int OnCheckInvite(userrec* user, chanrec* chan)
virtual Version GetVersion()
{
- return Version(1, 0, 0, 2, VF_STATIC);
+ return Version(1, 0, 0, 3, VF_VENDOR | VF_STATIC);
}
};