summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_check.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index ad0e2394d..35901f8d5 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -194,7 +194,9 @@ class CommandCheck : public Command
{
Membership* memb = *i;
Channel* c = memb->chan;
- chliststr.push_back(memb->GetPrefixChar());
+ char prefix = memb->GetPrefixChar();
+ if (prefix)
+ chliststr.push_back(prefix);
chliststr.append(c->name).push_back(' ');
}