summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-17 15:46:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-17 15:46:05 +0000
commite3a1eeec99b3a587806ef05f3daa139fed6d5a88 (patch)
tree18328dce7bab979d2fed528acb6bb592c6625a17
parentd544f077bad47d6a499a07706604e84b417ab24d (diff)
Testing and debugging done, it all works :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5274 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_alias.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 6ee98834d..6a7507f77 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -237,9 +237,15 @@ class ModuleAlias : public Module
x++;
}
- if (ServerInstance->CallCommandHandler(parv[0], &parv[1], x-1, user) == CMD_INVALID)
+ ServerInstance->Log(DEBUG,"Call command handler on %s", parv[0]);
+
+ if (ServerInstance->Parser->CallHandler(parv[0], &parv[1], x-1, user) == CMD_INVALID)
+ {
+ ServerInstance->Log(DEBUG,"Unknown command or not enough parameters");
+ }
+ else
{
- user->WriteServ("421 %s %s :Unknown command", user->nick, parv[0]);
+ ServerInstance->Log(DEBUG,"Command handler called successfully.");
}
}