summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index fcfb524ce..c2060b90e 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -664,7 +664,9 @@ void Channel::UserList(User *user)
Membership* memb = i->second;
prefixlist.clear();
- prefixlist.push_back(memb->GetPrefixChar());
+ char prefix = memb->GetPrefixChar();
+ if (prefix)
+ prefixlist.push_back(prefix);
nick = i->first->nick;
FOREACH_MOD(OnNamesListItem, (user, memb, prefixlist, nick));