From 48411d8c6b214282174519d5e31e8a4144c135cc Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 21 Dec 2005 20:44:24 +0000 Subject: Fixed to include new parameter git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2602 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 6 +++++- src/modules/m_spanningtree.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 18bf503ed..a0d361e78 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -84,10 +84,14 @@ class ModuleAlias : public Module return Version(1,0,0,1,VF_VENDOR); } - virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) + virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user, bool validated) { userrec *u = NULL; irc::string c = command.c_str(); + + /* If the command is valid, we dont want to know */ + if (validated) + return 0; for (unsigned int i = 0; i < Aliases.size(); i++) { diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index a4b34f689..ffc3befa4 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2639,7 +2639,7 @@ class ModuleSpanningTree : public Module { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) - return; + return 0; if (command == "CONNECT") { -- cgit v1.2.3