summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 02:01:38 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 02:01:38 +0000
commit0d69fdd92c5444910860be2c03c5c259b33b1931 (patch)
tree4f4f69e37b8df5620e148e16fb9415940659bfa6 /src
parentfa67c7e80b15060773295e4719545a802d8717d5 (diff)
If SVSNICK is sent to force a change to a UID-lookalike, just change nick to UID. Fixes bug #932
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12318 e03df62e-2008-0410-955e-edbf42e46eb7
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()))