diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-16 16:01:51 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-18 21:24:22 +0200 |
commit | 3ce33ee0e6bc0b8fbe2a564a37e02d2e56510b06 (patch) | |
tree | 9274c8a44c0d57917bfe79366308fbd6d2e4b90e /src/modules/m_spanningtree/svsnick.cpp | |
parent | f3d134a5b642b83e865c03b45c313df7f829ba15 (diff) |
Change the signature of User::ForceNickChange() to accept const std::string& instead of const char*
Diffstat (limited to 'src/modules/m_spanningtree/svsnick.cpp')
-rw-r--r-- | src/modules/m_spanningtree/svsnick.cpp | 4 |
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; |