From b51743a17fa298f211ace08dec28445bfea1d98f Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Dec 2005 14:31:50 +0000 Subject: Added fallback for lazy services that dont prefix SVSNICK and SVSJOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2227 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index dcce01720..a8bcf0403 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1435,10 +1435,18 @@ class TreeSocket : public InspSocket } else if (command == "SVSNICK") { + if (prefix == "") + { + prefix = this->GetName(); + } return this->ForceNick(prefix,params); } else if (command == "SVSJOIN") { + if (prefix == "") + { + prefix = this->GetName(); + } return this->ServiceJoin(prefix,params); } else if (command == "SQUIT") -- cgit v1.2.3