summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/svsnick.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/svsnick.cpp b/src/modules/m_spanningtree/svsnick.cpp
index f13385fc2..fda150012 100644
--- a/src/modules/m_spanningtree/svsnick.cpp
+++ b/src/modules/m_spanningtree/svsnick.cpp
@@ -23,10 +23,11 @@ CmdResult CommandSVSNick::Handle(const std::vector<std::string>& parameters, Use
if (u && IS_LOCAL(u))
{
- parameterlist par;
- par.push_back(parameters[1]);
+ std::string nick = parameters[1];
+ if (isdigit(nick[0]))
+ nick = u->uuid;
- if (!u->ForceNickChange(parameters[1].c_str()))
+ if (!u->ForceNickChange(nick.c_str()))
{
/* buh. UID them */
if (!u->ForceNickChange(u->uuid.c_str()))