diff options
| author | 2014-06-20 16:20:19 +0200 | |
|---|---|---|
| committer | 2014-06-20 16:20:19 +0200 | |
| commit | 1442193c79016ea60a8a6e7df66f758040b77c76 (patch) | |
| tree | fdbfac6cbfa63f1f4e2286a97fa386812b1aee92 /src/modules.cpp | |
| parent | Increment serverstats::Collisions when a collision is handled, not when a mod... (diff) | |
| download | inspircd++-1442193c79016ea60a8a6e7df66f758040b77c76.tar.gz inspircd++-1442193c79016ea60a8a6e7df66f758040b77c76.tar.bz2 inspircd++-1442193c79016ea60a8a6e7df66f758040b77c76.zip | |
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.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 2825b2d0e..9ca33e2dd 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -95,7 +95,7 @@ void Module::OnInfo(User*) { DetachEvent(I_OnInfo); } void Module::OnWhois(User*, User*) { DetachEvent(I_OnWhois); } ModResult Module::OnUserPreInvite(User*, User*, Channel*, time_t) { DetachEvent(I_OnUserPreInvite); return MOD_RES_PASSTHRU; } ModResult Module::OnUserPreMessage(User*, void*, int, std::string&, char, CUList&, MessageType) { DetachEvent(I_OnUserPreMessage); return MOD_RES_PASSTHRU; } -ModResult Module::OnUserPreNick(User*, const std::string&) { DetachEvent(I_OnUserPreNick); return MOD_RES_PASSTHRU; } +ModResult Module::OnUserPreNick(LocalUser*, const std::string&) { DetachEvent(I_OnUserPreNick); return MOD_RES_PASSTHRU; } void Module::OnUserPostNick(User*, const std::string&) { DetachEvent(I_OnUserPostNick); } ModResult Module::OnPreMode(User*, User*, Channel*, const std::vector<std::string>&) { DetachEvent(I_OnPreMode); return MOD_RES_PASSTHRU; } void Module::On005Numeric(std::map<std::string, std::string>&) { DetachEvent(I_On005Numeric); } |
