diff options
author | Adam <Adam@anope.org> | 2012-10-01 01:56:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-01 01:56:57 -0400 |
commit | 89428a9d1032e3c2a6e397629a32862b3e58d708 (patch) | |
tree | d507904b3fa1cc084f0f3e688c839bcdd47f79d7 /src/nickalias.cpp | |
parent | b937d6310d9a7c0e2434200306b63d513cb2ae61 (diff) |
Cleanup of all of the protocol modules, rewrote message handling system to be a bit more C++ ish
Diffstat (limited to 'src/nickalias.cpp')
-rw-r--r-- | src/nickalias.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nickalias.cpp b/src/nickalias.cpp index e9c8cce08..6db16c44c 100644 --- a/src/nickalias.cpp +++ b/src/nickalias.cpp @@ -92,7 +92,7 @@ void NickAlias::Release() { if (this->HasFlag(NS_HELD)) { - if (ircd->svshold) + if (ircdproto->CanSVSHold) ircdproto->SendSVSHoldDel(this->nick); else { @@ -147,11 +147,8 @@ class CoreExport NickServRelease : public User, public Timer * @param na The nick * @param delay The delay before the nick is released */ - NickServRelease(NickAlias *na, time_t delay) : User(na->nick, Config->NSEnforcerUser, Config->NSEnforcerHost, ts6_uid_retrieve()), Timer(delay), nick(na->nick) + NickServRelease(NickAlias *na, time_t delay) : User(na->nick, Config->NSEnforcerUser, Config->NSEnforcerHost, "", "", Me, "Services Enforcer", Anope::CurTime, "", ts6_uid_retrieve()), Timer(delay), nick(na->nick) { - this->realname = "Services Enforcer"; - this->server = Me; - /* Erase the current release timer and use the new one */ std::map<Anope::string, NickServRelease *>::iterator nit = NickServReleases.find(this->nick); if (nit != NickServReleases.end()) @@ -195,7 +192,7 @@ void NickAlias::OnCancel(User *) new NickServHeld(this, Config->NSReleaseTimeout); - if (ircd->svshold) + if (ircdproto->CanSVSHold) ircdproto->SendSVSHold(this->nick); else new NickServRelease(this, Config->NSReleaseTimeout); |