]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alias.cpp
Add 906, sasl aborted
[user/henk/code/inspircd.git] / src / modules / m_alias.cpp
index 5a6850f617b2444bc9f76064e4189dc6aa28b58d..e1600e9c61317055a2273e5183beada0889de97d 100644 (file)
@@ -126,7 +126,7 @@ class ModuleAlias : public Module
                }
        }
 
-       virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line)
+       virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line)
        {
                User *u = NULL;
 
@@ -197,10 +197,10 @@ class ModuleAlias : public Module
                                else
                                {
                                        irc::sepstream commands(Aliases[i].replace_with, '\n');
-                                       std::string command;
-                                       while (commands.GetToken(command))
+                                       std::string scommand;
+                                       while (commands.GetToken(scommand))
                                        {
-                                               DoCommand(command, user, safe);
+                                               DoCommand(scommand, user, safe);
                                        }
                                        return 1;
                                }