summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-13 21:51:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-13 21:51:21 +0000
commit127840a21ae841cf767bd22ff5dffe6f586698d2 (patch)
tree985afe5ce366325905faa447d892b0fc2290d5af /src/modules
parent2ea814385ef00a34f150e08c3dae14ef90978458 (diff)
Guess origin where server is lazy with PING/PONG and doesnt specify one, prepend the command's source :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3191 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 1dbf54b59..4b6e819d7 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2256,10 +2256,18 @@ class TreeSocket : public InspSocket
}
else if (command == "PING")
{
+ if (prefix == "")
+ {
+ prefix = this->GetName();
+ }
return this->LocalPing(prefix,params);
}
else if (command == "PONG")
{
+ if (prefix == "")
+ {
+ prefix = this->GetName();
+ }
return this->LocalPong(prefix,params);
}
else if (command == "VERSION")