summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_abbreviation.cpp2
-rw-r--r--src/modules/m_filter.h6
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<std::string> &parameters, User *user, bool validated, const std::string &original_line);
+ virtual int OnPreCommand(std::string &command, std::vector<std::string> &parameters, 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<std::string> &parameters, User *user, bool validated, const std::string &original_line)
+int FilterBase::OnPreCommand(std::string &command, std::vector<std::string> &parameters, 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;