summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-21 20:44:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-21 20:44:24 +0000
commit48411d8c6b214282174519d5e31e8a4144c135cc (patch)
tree7f5bdefe51854bc39874d8a751e23918bfbeea53 /src
parent0fad2325b495aea5302abce3d9c3f0bd0720281e (diff)
Fixed to include new parameter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2602 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_alias.cpp6
-rw-r--r--src/modules/m_spanningtree.cpp2
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")
{