From 1442193c79016ea60a8a6e7df66f758040b77c76 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 20 Jun 2014 16:20:19 +0200 Subject: 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. --- src/modules/m_nonicks.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_nonicks.cpp') diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index 15ee4e7f8..5a45bbb4a 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -46,11 +46,8 @@ class ModuleNoNickChange : public Module tokens["EXTBAN"].push_back('N'); } - ModResult OnUserPreNick(User* user, const std::string &newnick) CXX11_OVERRIDE + ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE { - if (!IS_LOCAL(user)) - return MOD_RES_PASSTHRU; - for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++) { Channel* curr = (*i)->chan; -- cgit v1.3.1-10-gc9f91