diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-17 21:14:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-17 21:14:26 +0000 |
commit | 76bf72f8c2c5b1524bf20a523fe1cf0d79d29742 (patch) | |
tree | e7f29c14b8d0b6c5ea3e76a3c450eff1446abc0a /src/modules/m_alias.cpp | |
parent | 94eb9af0abd8636a8edd99fc23a3fc937417e962 (diff) |
Mass comment removal.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r-- | src/modules/m_alias.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
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) |