summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2012-11-09 07:38:37 -0800
committerAttila Molnar <attilamolnar@hush.com>2012-11-09 07:38:37 -0800
commit1e7a9fcd2070a26e5b53856a985ec916b6594e2f (patch)
treee50203b6f35525d2a647a69c0369ba48ea686606
parent6e8584b0f642afeec73990832f54ed4ba750b11f (diff)
parent50ea0efc0d6f4419eca32a2d0909756b5b4a7986 (diff)
Merge pull request #357 from StevenVanAcker/insp20
unbreak m_hostchange.so
-rw-r--r--src/modules/m_hostchange.cpp4
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"))));
}
}