summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustArchi <JustArchi@JustArchi.net>2014-09-22 17:37:05 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-22 19:20:12 +0200
commite164675ed98468350a78fa69ca4d18670959c200 (patch)
treeac2131167ab4e134cfb3515c35ae826c46f6d328 /src
parentb8d32b75cd8d7d70058706122239d2814d5f6487 (diff)
Forward-port of https://github.com/inspircd/inspircd-extras/commit/a311dbcaea1abad68b87ebbb283fc6d75a207a53 into master
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_flashpolicyd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_flashpolicyd.cpp b/src/modules/m_flashpolicyd.cpp
index 95b82848f..46fd33e61 100644
--- a/src/modules/m_flashpolicyd.cpp
+++ b/src/modules/m_flashpolicyd.cpp
@@ -128,6 +128,13 @@ class ModuleFlashPD : public Module
to_ports.append(ConvToStr(ls->bind_port)).push_back(',');
}
+
+ if (to_ports.empty())
+ {
+ policy_reply.clear();
+ return;
+ }
+
to_ports.erase(to_ports.size() - 1);
policy_reply =