From 01b71ef43f9413c5f0ee2fc3e484ef6e7bdeb1f6 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 9 Apr 2013 18:36:49 +0200 Subject: Move most whois related code from the core into cmd_whois --- src/modules/m_spanningtree/idle.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/idle.cpp b/src/modules/m_spanningtree/idle.cpp index 70453b975..5aa268a9e 100644 --- a/src/modules/m_spanningtree/idle.cpp +++ b/src/modules/m_spanningtree/idle.cpp @@ -63,13 +63,7 @@ bool TreeSocket::Whois(const std::string &prefix, parameterlist ¶ms) if ((who_to_send_to) && (IS_LOCAL(who_to_send_to))) { // an incoming reply to a whois we sent out - std::string nick_whoised = prefix; - unsigned long signon = atoi(params[1].c_str()); - unsigned long idle = atoi(params[2].c_str()); - if ((who_to_send_to) && (IS_LOCAL(who_to_send_to))) - { - ServerInstance->DoWhois(who_to_send_to, u, signon, idle, nick_whoised.c_str()); - } + ServerInstance->Parser->CallHandler("WHOIS", params, u); } else { -- cgit v1.2.3