* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
* ---------------------------------------------------
*/
+using namespace std;
+
#include <stdio.h>
#include <string>
#include "users.h"
{
Server *Srv;
public:
- ModuleBotMode()
+ ModuleBotMode(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
if (!Srv->AddExtendedMode('B',MT_CLIENT,false,0,0))
{
Srv->Log(DEFAULT,"*** m_botmode: ERROR, failed to allocate user mode +B!");
- printf("Could not claim usermode +B for this module!");
- exit(0);
+ return;
}
}
+
+ void Implements(char* List)
+ {
+ List[I_OnWhois] = List[I_OnExtendedMode] = 1;
+ }
virtual ~ModuleBotMode()
{
- delete Srv;
}
virtual Version GetVersion()
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleBotMode;
+ return new ModuleBotMode(Me);
}
};