summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")