diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-06 00:22:01 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-07-13 17:23:39 +0200 |
commit | 414e1249e548936b6430c895b75ccbfdf29e00c1 (patch) | |
tree | 85313294123895c74c6ef147dcbe1705bacd000b | |
parent | 5d8b4bfa59cecfed1f503dacf6ef2f5dc8cb7f2d (diff) |
m_blockamsg Remove redundant null pointer and IS_LOCAL() check
-rw-r--r-- | src/modules/m_blockamsg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 1d26b7639..8160fcf54 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -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. |