diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 15:05:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 15:05:40 +0000 |
commit | ae0aa99f7e35b29573a705426b2389d5235874e8 (patch) | |
tree | f53057700fe23f0b27029a5aacdbbafe0c387e90 | |
parent | 73f5a4c3512e7f2b615bb801c6904db4c47c1946 (diff) |
Remote whois fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2290 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |