diff options
| author | 2015-02-27 01:30:40 +0100 | |
|---|---|---|
| committer | 2015-02-27 01:30:40 +0100 | |
| commit | 245c2d9d43d433a8ec2c71741c4e0c5281f5c0a8 (patch) | |
| tree | 39133c3d1e3bf4a3b04c19e52f1b800a667fa3fa | |
| parent | Fix oversights in substr() conversion (diff) | |
Fix miscalculation of maxlen in Channel::UserList() introduced by the WriteNumeric() conversion
| -rw-r--r-- | src/channels.cpp | 2 |
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) |
