ModuleIdent(InspIRCd *Me) : Module(Me)
{
Conf = new ConfigReader(ServerInstance);
- OnRehash(NULL, "");
+ OnRehash(NULL);
Implementation eventlist[] = { I_OnRehash, I_OnUserRegister, I_OnCheckReady, I_OnCleanup, I_OnUserDisconnect };
ServerInstance->Modules->Attach(eventlist, this, 5);
}
return Version("$Id$", VF_VENDOR, API_VERSION);
}
- virtual void OnRehash(User *user, const std::string ¶m)
+ virtual void OnRehash(User *user)
{
delete Conf;
Conf = new ConfigReader(ServerInstance);
user->WriteServ("NOTICE Auth :*** Could not find your ident, using %s instead.", isock->GetResult());
/* Copy the ident string to the user */
- user->ident.assign(isock->GetResult(), 0, ServerInstance->Config->Limits.IdentMax + 1);
+ std::string ident;
+ ident.assign(isock->GetResult(), 0, ServerInstance->Config->Limits.IdentMax + 1);
+ user->ChangeIdent(ident.c_str());
/* The user isnt actually disconnecting, we call this to clean up the user */
OnUserDisconnect(user);