* | 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
Implementation eventlist[] = { I_OnRehash, I_OnOper, I_OnGlobalOper, I_OnKill,
I_OnPreCommand, I_OnUserRegister, I_OnUserQuit, I_OnLoadModule };
- ServerInstance->Modules->Attach(eventlist, this, 9);
- }
-
- virtual ~ModuleSQLLog()
- {
+ ServerInstance->Modules->Attach(eventlist, this, 8);
}
void ReadConfig()
return MOD_RES_PASSTHRU;
}
- virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line)
+ virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, LocalUser *user, bool validated, const std::string &original_line)
{
if ((command == "GLINE" || command == "KLINE" || command == "ELINE" || command == "ZLINE") && validated)
{
return MOD_RES_PASSTHRU;
}
- virtual void OnUserRegister(LocalUser* user)
+ virtual ModResult OnUserRegister(LocalUser* user)
{
AddLogEntry(LT_CONNECT,user->nick,user->host,user->server);
+ return MOD_RES_PASSTHRU;
}
virtual void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message)