From e164675ed98468350a78fa69ca4d18670959c200 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 22 Sep 2014 17:37:05 +0200 Subject: Forward-port of https://github.com/inspircd/inspircd-extras/commit/a311dbcaea1abad68b87ebbb283fc6d75a207a53 into master --- src/modules/m_flashpolicyd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 = -- cgit v1.2.3