From 6e470a0c86707d897f61fe98c77e242b6011fe3b Mon Sep 17 00:00:00 2001 From: dz Date: Tue, 10 Feb 2009 02:26:44 +0000 Subject: Prevent fantasy aliases from blocking user commands (eg. !topic would prevent users from using /topic). Also as a result of this change, any aliases where the command does not actually exist and are either strictly fantasy commands or no formats match will result in a unknown command message. Fixes bug #714, spotted by CJ -- thanks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11080 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 4ba05729b..1d601127a 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -173,8 +173,8 @@ class ModuleAlias : public Module i++; } - // If aliases have been processed, aliases took it. - return 1; + // If we made it here, no aliases actually matched. + return 0; } virtual int OnUserPreMessage(User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list) -- cgit v1.2.3