diff options
| author | 2012-11-09 07:38:37 -0800 | |
|---|---|---|
| committer | 2012-11-09 07:38:37 -0800 | |
| commit | 1e7a9fcd2070a26e5b53856a985ec916b6594e2f (patch) | |
| tree | e50203b6f35525d2a647a69c0369ba48ea686606 /src/modules | |
| parent | Fix m_ssl_gnutls when using non-standard include/lib paths. (diff) | |
| parent | wrong order of arguments to Host() (diff) | |
Merge pull request #357 from StevenVanAcker/insp20
unbreak m_hostchange.so
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_hostchange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index 099050a27..6efa9974b 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -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")))); } } |
