From b66ebcee18aa6ecdfb4a208fcd8d4988f640167e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Dec 2005 14:57:57 +0000 Subject: Work on remote /WHOIS git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2288 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 5d08926f7..adb0510ab 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1374,6 +1374,7 @@ class TreeSocket : public InspSocket { if (std::string(u->server) == Srv->GetServerName()) { + log(DEBUG,"Got IDLE, sending back IDLE"); char signon[MAXBUF]; char idle[MAXBUF]; snprintf(signon,MAXBUF,"%lu",(unsigned long)u->signon); @@ -1393,6 +1394,7 @@ class TreeSocket : public InspSocket { if (std::string(u->server) == Srv->GetServerName()) { + log(DEBUG,"Got final IDLE"); // an incoming reply to a whois we sent out std::string nick_whoised = prefix; std::string who_did_the_whois = params[0]; @@ -2272,7 +2274,8 @@ class ModuleSpanningTree : public Module { if ((std::string(user->server) == Srv->GetServerName()) && (pcnt > 1)) { - if (Srv->FindNick(parameters[1])) + userrec* remote = Srv->FindNick(parameters[1]); + if ((remote) && (std::string(remote->server) != Srv->GetServerName())) { std::deque params; params.push_back(parameters[1]); -- cgit v1.2.3