diff options
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r-- | src/modules/m_alias.cpp | 10 |
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."); } } |