summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-09 14:57:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-09 14:57:57 +0000
commitb66ebcee18aa6ecdfb4a208fcd8d4988f640167e (patch)
tree376c202259d9e71de0c9be60ba5235efa9238789
parent2fddaaa4dbb63cbdb7b17a52ed50e67204cba272 (diff)
Work on remote /WHOIS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2288 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp5
1 files changed, 4 insertions, 1 deletions
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<std::string> params;
params.push_back(parameters[1]);