From 76bf72f8c2c5b1524bf20a523fe1cf0d79d29742 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 17 Jan 2007 21:14:26 +0000 Subject: Mass comment removal. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/modules/m_alias.cpp') diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index e8fe736c4..858a7883d 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -104,8 +104,6 @@ class ModuleAlias : public Module bool everything_after = (varname == "-"); std::string word = ""; - ServerInstance->Log(DEBUG,"Get var %d%s", index , everything_after ? " and all after it" : ""); - for (int j = 0; j < index; j++) word = ss.GetToken(); @@ -119,8 +117,6 @@ class ModuleAlias : public Module } } - ServerInstance->Log(DEBUG,"Var is '%s'", word.c_str()); - return word; } @@ -200,18 +196,15 @@ class ModuleAlias : public Module if (crlf == std::string::npos) { - ServerInstance->Log(DEBUG,"Single line alias: '%s'", Aliases[i].replace_with.c_str()); DoCommand(Aliases[i].replace_with, user, safe); return 1; } else { - ServerInstance->Log(DEBUG,"Multi line alias: '%s'", Aliases[i].replace_with.c_str()); irc::sepstream commands(Aliases[i].replace_with, '\n'); std::string command = "*"; while ((command = commands.GetToken()) != "") { - ServerInstance->Log(DEBUG,"Execute: '%s'", command.c_str()); DoCommand(command, user, safe); } return 1; @@ -265,20 +258,10 @@ class ModuleAlias : public Module while ((pars[x] = ss.GetToken()) != "") { parv[x] = pars[x].c_str(); - ServerInstance->Log(DEBUG,"Parameter %d: %s", x, parv[x]); x++; } - 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 - { - ServerInstance->Log(DEBUG,"Command handler called successfully."); - } + ServerInstance->Parser->CallHandler(parv[0], &parv[1], x-1, user); } virtual void OnRehash(userrec* user, const std::string ¶meter) -- cgit v1.3.1-10-gc9f91