diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-09 19:12:09 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-10 17:28:08 +0200 |
commit | ca0083cba90c8830f5018b73eb715665a8db9dd7 (patch) | |
tree | 20d335e4d7c2f886fbce00d494eead769d22c543 /src/modules/m_maphide.cpp | |
parent | 0f8f3af9accd4b2d2f17cd25dbb898187cc24c98 (diff) |
Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()
Diffstat (limited to 'src/modules/m_maphide.cpp')
-rw-r--r-- | src/modules/m_maphide.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp index ca48cf4e2..f0502d175 100644 --- a/src/modules/m_maphide.cpp +++ b/src/modules/m_maphide.cpp @@ -39,7 +39,7 @@ class ModuleMapHide : public Module ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, LocalUser *user, bool validated, const std::string &original_line) { - if (validated && !IS_OPER(user) && !url.empty() && (command == "MAP" || command == "LINKS")) + if (validated && !user->IsOper() && !url.empty() && (command == "MAP" || command == "LINKS")) { user->WriteServ("NOTICE %s :/%s has been disabled; visit %s", user->nick.c_str(), command.c_str(), url.c_str()); return MOD_RES_DENY; |