diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-20 16:20:19 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-20 16:20:19 +0200 |
commit | 1442193c79016ea60a8a6e7df66f758040b77c76 (patch) | |
tree | fdbfac6cbfa63f1f4e2286a97fa386812b1aee92 /src/modules/m_svshold.cpp | |
parent | 3323226c38c959392e61f406ec62f9d5f24fce15 (diff) |
Change the type of the user parameter in the OnUserPreNick() hook from User to LocalUser
No remote users were passed to this hook before.
Remove needless IS_LOCAL() checks.
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r-- | src/modules/m_svshold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index af306ce62..a623e1553 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -192,7 +192,7 @@ class ModuleSVSHold : public Module return MOD_RES_DENY; } - ModResult OnUserPreNick(User *user, const std::string &newnick) CXX11_OVERRIDE + ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE { XLine *rl = ServerInstance->XLines->MatchesLine("SVSHOLD", newnick); |