]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
Merge pull request #357 from StevenVanAcker/insp20
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index 099050a27401130ee2d2480f56e96d016809eb2f..6efa9974bc1bff4aa4022e94b64cb95983e96a49 100644 (file)
@@ -84,7 +84,7 @@ class ModuleHostChange : public Module
                        if (!strcasecmp(action.c_str(), "set"))
                        {
                                act = Host::HCA_SET;
-                               newhost = tag->getString("newhost");
+                               newhost = tag->getString("value");
                        }
                        else if (!strcasecmp(action.c_str(), "suffix"))
                                act = Host::HCA_SUFFIX;
@@ -93,7 +93,7 @@ class ModuleHostChange : public Module
                        else
                                throw ModuleException("Invalid hostchange action: " + action);
 
-                       hostchanges.push_back(std::make_pair(mask, Host(act, tag->getString("ports"), newhost)));
+                       hostchanges.push_back(std::make_pair(mask, Host(act, newhost, tag->getString("ports"))));
                }
        }