diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 14:31:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 14:31:50 +0000 |
commit | b51743a17fa298f211ace08dec28445bfea1d98f (patch) | |
tree | a3c68f4f27efb299f238650e50f3ddf191533bd3 | |
parent | 5c8c4d0f8c7a115d7e73c6d1b75f21e72f771a22 (diff) |
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
-rw-r--r-- | src/modules/m_spanningtree.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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") |