mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
m_blockamsg Remove redundant null pointer and IS_LOCAL() check
This commit is contained in:
parent
5d8b4bfa59
commit
414e1249e5
@ -98,8 +98,8 @@ class ModuleBlockAmsg : public Module
|
||||
|
||||
virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, LocalUser *user, bool validated, const std::string &original_line)
|
||||
{
|
||||
// Don't do anything with unregistered users, or remote ones.
|
||||
if(!user || (user->registered != REG_ALL) || !IS_LOCAL(user))
|
||||
// Don't do anything with unregistered users
|
||||
if (user->registered != REG_ALL)
|
||||
return MOD_RES_PASSTHRU;
|
||||
|
||||
// We want case insensitive command comparison.
|
||||
|
Loading…
x
Reference in New Issue
Block a user