diff options
Diffstat (limited to 'src/modules/m_namesx.cpp')
-rw-r--r-- | src/modules/m_namesx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index 377c9b1f0..3aa8ec355 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -48,7 +48,7 @@ class ModuleNamesX : public Module output.append(" NAMESX"); } - virtual int OnPreCommand(std::string &command, std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line) + virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line) { irc::string c = command.c_str(); /* We don't actually create a proper command handler class for PROTOCTL, @@ -61,10 +61,10 @@ class ModuleNamesX : public Module if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"NAMESX"))) { user->Extend("NAMESX"); - return 1; + return MOD_RES_DENY; } } - return 0; + return MOD_RES_PASSTHRU; } virtual void OnNamesListItem(User* issuer, User* user, Channel* channel, std::string &prefixes, std::string &nick) |