From 8f34594cb7d600ccff100dff1817b69b03756ea2 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 28 Apr 2015 15:16:22 +0200 Subject: Move OnWhois* events to core_whois, add Whois::Context Remove InspIRCd::SendWhoisLine() --- src/modules/m_services_account.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_services_account.cpp') 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"); } } -- cgit v1.3.1-10-gc9f91