From ae0aa99f7e35b29573a705426b2389d5235874e8 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Dec 2005 15:05:40 +0000 Subject: Remote whois fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2290 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 8f4ec7477..a62326275 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1394,7 +1394,7 @@ class TreeSocket : public InspSocket } else if (params.size() == 3) { - if (std::string(u->server) == Srv->GetServerName()) + if (std::string(u->server) != Srv->GetServerName()) { log(DEBUG,"Got final IDLE"); // an incoming reply to a whois we sent out @@ -1403,7 +1403,7 @@ class TreeSocket : public InspSocket unsigned long signon = atoi(params[1].c_str()); unsigned long idle = atoi(params[2].c_str()); userrec* who_to_send_to = Srv->FindNick(who_did_the_whois); - if (who_to_send_to) + if ((who_to_send_to) && (std::string(who_to_send_to->server) == Srv->GetServerName())) do_whois(who_to_send_to,u,signon,idle,(char*)nick_whoised.c_str()); } else -- cgit v1.2.3