* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
class ModuleTaxonomy : public Module
{
- CommandTaxonomy* newcommand;
+ CommandTaxonomy cmd;
bool claimed;
public:
ModuleTaxonomy(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), cmd(Me, this, claimed)
{
-
- // Create a new command
- newcommand = new CommandTaxonomy(ServerInstance, this, claimed);
- ServerInstance->AddCommand(newcommand);
- Implementation eventlist[] = { I_ProtoSendMetaData };
- ServerInstance->Modules->Attach(eventlist, this, 1);
+ ServerInstance->AddCommand(&cmd);
}
- void ProtoSendMetaData(void* opaque, int target_type, void* target, const std::string &extname, const std::string &extdata)
+ void ProtoSendMetaData(void* opaque, TargetTypeFlags target_type, void* target, const std::string &extname, const std::string &extdata)
{
if (target_type == TYPE_USER)
{