summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 948538ff4..e06e4c6fc 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -598,7 +598,7 @@ void Channel::UserList(User* user, bool has_user)
list.append(this->name).append(" :");
std::string::size_type pos = list.size();
- const size_t maxlen = ServerInstance->Config->Limits.MaxLine - 10 - ServerInstance->Config->ServerName.size();
+ const size_t maxlen = ServerInstance->Config->Limits.MaxLine - 10 - ServerInstance->Config->ServerName.size() - user->nick.size();
std::string prefixlist;
std::string nick;
for (MemberMap::iterator i = userlist.begin(); i != userlist.end(); ++i)