aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_hostchange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_hostchange.cpp')
-rw-r--r--src/modules/m_hostchange.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index d1f3426b2..5016ed5c4 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -156,7 +156,7 @@ private:
// Ensure that we have the <hostchange:mask> parameter.
const std::string mask = tag->getString("mask");
if (mask.empty())
- throw ModuleException("<hostchange:mask> is a mandatory field, at " + tag->source.str());
+ throw ModuleException(this, "<hostchange:mask> is a mandatory field, at " + tag->source.str());
// Determine what type of host rule this is.
const std::string action = tag->getString("action");
@@ -175,7 +175,7 @@ private:
// Ensure that we have the <hostchange:value> parameter.
const std::string value = tag->getString("value");
if (value.empty())
- throw ModuleException("<hostchange:value> is a mandatory field when using the 'set' action, at " + tag->source.str());
+ throw ModuleException(this, "<hostchange:value> is a mandatory field when using the 'set' action, at " + tag->source.str());
// The hostname is in the format <value>.
rules.emplace_back(tag, mask, value);
@@ -183,7 +183,7 @@ private:
}
else
{
- throw ModuleException(action + " is an invalid <hostchange:action> type, at " + tag->source.str());
+ throw ModuleException(this, action + " is an invalid <hostchange:action> type, at " + tag->source.str());
}
}