From fc3a83831b8348f34dbf2009e379a5423b4738b9 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 Jun 2008 15:31:43 +0000 Subject: Update a header i left out git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9842 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_abbreviation.cpp | 2 ++ src/modules/m_filter.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp index fd6309e83..bc04cc307 100644 --- a/src/modules/m_abbreviation.cpp +++ b/src/modules/m_abbreviation.cpp @@ -44,6 +44,8 @@ class ModuleAbbreviation : public Module command.erase(command.end() - 1); ServerInstance->Logs->Log("m_abbreviation", DEBUG, "Abbreviated command: %s", command.c_str()); + + return false; } }; diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index ba23dd08d..ca1e1486a 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -113,7 +113,7 @@ protected: virtual void OnSyncOtherMetaData(Module* proto, void* opaque, bool displayable = false); virtual void OnDecodeMetaData(int target_type, void* target, const std::string &extname, const std::string &extdata); virtual int OnStats(char symbol, User* user, string_list &results) = 0; - virtual int OnPreCommand(const std::string &command, const std::vector ¶meters, User *user, bool validated, const std::string &original_line); + virtual int OnPreCommand(std::string &command, std::vector ¶meters, User *user, bool validated, const std::string &original_line); bool AppliesToMe(User* user, FilterResult* filter, int flags); }; @@ -295,10 +295,10 @@ int FilterBase::OnUserPreNotice(User* user,void* dest,int target_type, std::stri return 0; } -int FilterBase::OnPreCommand(const std::string &command, const std::vector ¶meters, User *user, bool validated, const std::string &original_line) +int FilterBase::OnPreCommand(std::string &command, std::vector ¶meters, User *user, bool validated, const std::string &original_line) { flags = 0; - if ((validated == 1) && (IS_LOCAL(user))) + if (validated && IS_LOCAL(user)) { std::string checkline; int replacepoint = 0; -- cgit v1.2.3