summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chanserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index a00b83f0c..dd9299e02 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -906,6 +906,9 @@ void check_modes(Channel * c)
if (modebuf[modebuf.length() - 1] == '-')
modebuf.erase(modebuf.length() - 1);
+
+ if (modebuf.empty())
+ return;
ircdproto->SendMode((ci ? whosends(ci) : findbot(s_OperServ)), c->name, "%s%s", modebuf.c_str(), argbuf.empty() ? "" : argbuf.c_str());
}