From 6cb22b68b9dbe73217ae251e9708d22d5d16c16d Mon Sep 17 00:00:00 2001 From: Steven Van Acker Date: Fri, 9 Nov 2012 15:36:08 +0100 Subject: use documented "value" attribute instead of undocumented "newhost" --- src/modules/m_hostchange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_hostchange.cpp') diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index 099050a27..b137f1418 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; -- cgit v1.2.3 From 50ea0efc0d6f4419eca32a2d0909756b5b4a7986 Mon Sep 17 00:00:00 2001 From: Steven Van Acker Date: Fri, 9 Nov 2012 15:36:38 +0100 Subject: wrong order of arguments to Host() --- src/modules/m_hostchange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_hostchange.cpp') diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index b137f1418..6efa9974b 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -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")))); } } -- cgit v1.2.3