* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
m4 = new User_r(ServerInstance);
m5 = new User_R(ServerInstance);
- if (!ServerInstance->AddMode(m1) || !ServerInstance->AddMode(m2) || !ServerInstance->AddMode(m3)
- || !ServerInstance->AddMode(m4) || !ServerInstance->AddMode(m5))
+ if (!ServerInstance->Modes->AddMode(m1) || !ServerInstance->Modes->AddMode(m2) || !ServerInstance->Modes->AddMode(m3)
+ || !ServerInstance->Modes->AddMode(m4) || !ServerInstance->Modes->AddMode(m5))
{
throw ModuleException("Could not add user and channel modes!");
}
}
}
- void Implements(char* List)
- {
- List[I_OnWhois] = List[I_OnUserPostNick] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnUserPreJoin] = 1;
- }
virtual void OnUserPostNick(User* user, const std::string &oldnick)
{