summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-06 15:31:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-06 15:31:43 +0000
commitfc3a83831b8348f34dbf2009e379a5423b4738b9 (patch)
tree2072a98364a4d598f20236de16f715df25aa7c83
parentf4445fe712ce280835674f748a8d05a361229133 (diff)
Update a header i left out
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9842 e03df62e-2008-0410-955e-edbf42e46eb7
-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;