diff options
| author | 2015-04-28 15:16:22 +0200 | |
|---|---|---|
| committer | 2015-04-28 15:16:22 +0200 | |
| commit | 8f34594cb7d600ccff100dff1817b69b03756ea2 (patch) | |
| tree | fecbd61c35bd75add033a71b42043a0c99624c99 /src/modules/m_services_account.cpp | |
| parent | Prepend target user nick to whois numerics in InspIRCd::SendWhoisLine() (diff) | |
| download | inspircd++-8f34594cb7d600ccff100dff1817b69b03756ea2.tar.gz inspircd++-8f34594cb7d600ccff100dff1817b69b03756ea2.tar.bz2 inspircd++-8f34594cb7d600ccff100dff1817b69b03756ea2.zip | |
Move OnWhois* events to core_whois, add Whois::Context
Remove InspIRCd::SendWhoisLine()
Diffstat (limited to 'src/modules/m_services_account.cpp')
| -rw-r--r-- | src/modules/m_services_account.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 1af06846e..4ad339fcb 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -156,19 +156,19 @@ class ModuleServicesAccount : public Module } /* <- :twisted.oscnet.org 330 w00t2 w00t2 w00t :is logged in as */ - void OnWhois(User* source, User* dest) CXX11_OVERRIDE + void OnWhois(Whois::Context& whois) CXX11_OVERRIDE { - std::string *account = accountname.get(dest); + std::string* account = accountname.get(whois.GetTarget()); if (account) { - ServerInstance->SendWhoisLine(source, dest, 330, "%s :is logged in as", account->c_str()); + whois.SendLine(330, "%s :is logged in as", account->c_str()); } - if (dest->IsModeSet(m5)) + if (whois.GetTarget()->IsModeSet(m5)) { /* user is registered */ - ServerInstance->SendWhoisLine(source, dest, 307, ":is a registered nick"); + whois.SendLine(307, ":is a registered nick"); } } |
