forked from errbotio/errbot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The maximal message length has previously been set to 510 (probably in order to accomodate the b'\r\n' that are necessary for each IRC message). This turns out not to be enough, as the message starts with the obligatory `PRIVMSG <to> :` and ends with the EXT (b'\x03) mark. * The size limit was therefore set to `499` in order to accomodate all these obligatory parts. * Furthermore, a new configuration option has been added (`MESSAGE_SIZE_LIMIT_INCLUDES_ADDRESEE`), which takes care of the fact that `<to>` -- the addressee of the message -- comes directly after `PRIVMSG` and is thus part of the message. Note that this is currently only applied in the case of IRC. * Fixes errbotio#989 Signed-off-by: mr.Shu <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters