summaryrefslogtreecommitdiff
path: root/src/modules/m_swhois.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 16:27:30 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 16:27:30 +0100
commit0c42bcde16c3141ccd4bb8c5f7b22d65cc8e1909 (patch)
treef80ce6d1bd6346c9d9b4daa5350e6703e2738808 /src/modules/m_swhois.cpp
parentda29af8cba49d51e53d6e68237ccbf6370b6dd1f (diff)
Convert WhoisContext::SendLine() calls to pass the parameters of the numeric as method parameters
Diffstat (limited to 'src/modules/m_swhois.cpp')
-rw-r--r--src/modules/m_swhois.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 46d96a952..9a433e154 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -93,16 +93,16 @@ class ModuleSWhois : public Module, public Whois::LineEventListener
}
// :kenny.chatspike.net 320 Brain Azhrarn :is getting paid to play games.
- ModResult OnWhoisLine(Whois::Context& whois, unsigned int& numeric, std::string& text) CXX11_OVERRIDE
+ ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) CXX11_OVERRIDE
{
/* We use this and not OnWhois because this triggers for remote, too */
- if (numeric == 312)
+ if (numeric.GetNumeric() == 312)
{
/* Insert our numeric before 312 */
std::string* swhois = cmd.swhois.get(whois.GetTarget());
if (swhois)
{
- whois.SendLine(320, ":%s", swhois->c_str());
+ whois.SendLine(320, *swhois);
}
}