diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_nick.cpp | 6 | ||||
-rw-r--r-- | src/commands/cmd_quit.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/cmd_nick.cpp b/src/commands/cmd_nick.cpp index bdaff8723..a6e1e88c7 100644 --- a/src/commands/cmd_nick.cpp +++ b/src/commands/cmd_nick.cpp @@ -52,16 +52,16 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User if (((!ServerInstance->IsNick(parameters[0].c_str(), ServerInstance->Config->Limits.NickMax))) && (IS_LOCAL(user))) { - if (!User::NICKForced.get(user)) + if (!ServerInstance->NICKForced.get(user)) { if (parameters[0] == "0") { // Special case, Fake a /nick UIDHERE. Useful for evading "ERR: NICK IN USE" on connect etc. std::vector<std::string> p2; p2.push_back(user->uuid); - User::NICKForced.set(user, 1); + ServerInstance->NICKForced.set(user, 1); this->Handle(p2, user); - User::NICKForced.set(user, 0); + ServerInstance->NICKForced.set(user, 0); return CMD_SUCCESS; } diff --git a/src/commands/cmd_quit.cpp b/src/commands/cmd_quit.cpp index 5db7ada40..7bb84bd3b 100644 --- a/src/commands/cmd_quit.cpp +++ b/src/commands/cmd_quit.cpp @@ -51,7 +51,7 @@ CmdResult CommandQuit::Handle (const std::vector<std::string>& parameters, User else quitmsg = parameters.size() ? parameters[0] : "Client exited"; - std::string* operquit = User::OperQuit.get(user); + std::string* operquit = ServerInstance->OperQuit.get(user); if (operquit) { ServerInstance->Users->QuitUser(user, quitmsg, operquit->c_str()); |