summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 14:31:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 14:31:50 +0000
commitb51743a17fa298f211ace08dec28445bfea1d98f (patch)
treea3c68f4f27efb299f238650e50f3ddf191533bd3
parent5c8c4d0f8c7a115d7e73c6d1b75f21e72f771a22 (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.cpp8
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")