* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
throw ModuleException("Could not add new modes!");
ie.DoImplements(this);
- Implementation eventlist[] = { I_On005Numeric, I_OnCheckInvite };
- ServerInstance->Modules->Attach(eventlist, this, 2);
+ Implementation eventlist[] = { I_On005Numeric, I_OnCheckInvite, I_OnCheckKey };
+ ServerInstance->Modules->Attach(eventlist, this, 3);
}
void On005Numeric(std::string &output)
return MOD_RES_PASSTHRU;
}
+ ModResult OnCheckKey(User* user, Channel* chan, const std::string& key)
+ {
+ if (ServerInstance->Config->ConfValue("inviteexception")->getBool("bypasskey", true))
+ return OnCheckInvite(user, chan);
+ return MOD_RES_PASSTHRU;
+ }
+
void OnCleanup(int target_type, void* item)
{
ie.DoCleanup(target_type, item);
Version GetVersion()
{
- return Version("Provides support for the +I channel mode", VF_VENDOR | VF_COMMON);
+ return Version("Provides support for the +I channel mode", VF_VENDOR);
}
};