From e3a1eeec99b3a587806ef05f3daa139fed6d5a88 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 17 Sep 2006 15:46:05 +0000 Subject: Testing and debugging done, it all works :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5274 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/modules') 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."); } } -- cgit v1.2.3