summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/svsnick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/svsnick.cpp')
-rw-r--r--src/modules/m_spanningtree/svsnick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/svsnick.cpp b/src/modules/m_spanningtree/svsnick.cpp
index 916dae0a7..6490626af 100644
--- a/src/modules/m_spanningtree/svsnick.cpp
+++ b/src/modules/m_spanningtree/svsnick.cpp
@@ -32,10 +32,10 @@ CmdResult CommandSVSNick::Handle(const std::vector<std::string>& parameters, Use
if (isdigit(nick[0]))
nick = u->uuid;
- if (!u->ForceNickChange(nick.c_str()))
+ if (!u->ForceNickChange(nick))
{
/* buh. UID them */
- if (!u->ForceNickChange(u->uuid.c_str()))
+ if (!u->ForceNickChange(u->uuid))
{
ServerInstance->Users->QuitUser(u, "Nickname collision");
return CMD_SUCCESS;