]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alias.cpp
This will royally fuck 1.2's linking right now, but..
[user/henk/code/inspircd.git] / src / modules / m_alias.cpp
index a8f079bf1c808dae7faaf41770ab7eeea9e65cec..2bf4440b0821cb30712e634b9803f705f6bbd292 100644 (file)
@@ -104,12 +104,12 @@ class ModuleAlias : public Module
                std::string word;
 
                for (int j = 0; j < index; j++)
-                       word = ss.GetToken();
+                       ss.GetToken(word);
 
                if (everything_after)
                {
-                       std::string more = "*";
-                       while ((more = ss.GetToken()) != "")
+                       std::string more;
+                       while (ss.GetToken(more))
                        {
                                word.append(" ");
                                word.append(more);
@@ -201,8 +201,8 @@ class ModuleAlias : public Module
                                else
                                {
                                        irc::sepstream commands(Aliases[i].replace_with, '\n');
-                                       std::string command = "*";
-                                       while ((command = commands.GetToken()) != "")
+                                       std::string command;
+                                       while (commands.GetToken(command))
                                        {
                                                DoCommand(command, user, safe);
                                        }