summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")
{