}
if (cloak)
{
- user->ChangeDisplayedHost(cloak->c_str());
+ user->ChangeDisplayedHost(*cloak);
user->SetMode(this, true);
return MODEACTION_ALLOW;
}
{
}
- void init() CXX11_OVERRIDE
- {
- ServerInstance->Modules->AddService(cu);
- ServerInstance->Modules->AddService(ck);
- ServerInstance->Modules->AddService(cu.ext);
- }
-
/** This function takes a domain name string and returns just the last two domain parts,
* or the last domain part if only two are available. Failing that it just returns what it was given.
*
input.append(1, '\0'); // null does not terminate a C++ string
input.append(item);
- std::string rv = Hash->sum(input).substr(0,len);
+ std::string rv = Hash->GenerateRaw(input).substr(0,len);
for(int i=0; i < len; i++)
{
// this discards 3 bits per byte. We have an
if (u->IsModeSet(cu))
{
u->SetMode(cu, false);
- u->WriteServ("MODE %s -%c", u->nick.c_str(), cu.GetModeChar());
+ u->WriteCommand("MODE", "-" + ConvToStr(cu.GetModeChar()));
}
}