mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix truncation check
* The message target was not being counted :-( * The additional character added to the target by STATUSMSG was not counted
This commit is contained in:
parent
2aec5e167c
commit
0b333c7e72
2 changed files with 6 additions and 5 deletions
|
|
@ -2184,6 +2184,7 @@ func validateLineLen(msgType history.ItemType, source, target, payload string) (
|
|||
default:
|
||||
return true
|
||||
}
|
||||
limit -= len(target)
|
||||
limit -= len(payload)
|
||||
return limit >= 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue