From 127840a21ae841cf767bd22ff5dffe6f586698d2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 13 Feb 2006 21:51:21 +0000 Subject: 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 --- src/modules/m_spanningtree.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') 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") -- cgit v1.2.3