diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-05 01:09:01 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-05 01:09:01 +0000 |
commit | 7f4e98a691ba6ee6f220fec982f17c900c929f1d (patch) | |
tree | 7a7642b3f3fb13cab660a30639218df503b0873a /ChangeLog | |
parent | eb161b03f7b2012e1f33834220b9400848497173 (diff) |
sendmsg improvements: plugins can now choose what to do with overlong messages without having to resort to custom solutions
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1,3 +1,26 @@ +2007-02-05 Giuseppe Bilotta <giuseppe.bilotta@gmail.com> + + * sendmsg improvements: the bot sendmsg() method and all the methods + that rely on it (say(), notice(), and message methods such as reply()) + now accept an option hash to customize its behaviour. + * :newlines, which can be set to either :split or :join, + depending on whether newlines in messages should be used as + split-points, or should be be replaced by some string (defined + in the :join_with option) + * :max_lines, which determines the maximum number of lines to be + sent by each messages. Last line is truncated (see next + options). Set to nil to have no limits. + * :overlong, which determines the behaviour when overlong lines + are to be sent; possible values are :split or :truncate. + * If :overlong is set to :split, :split_at determines the + string/regexp to split at; default is /\s+/, other usual + choice could be /\s+\|\s+/. + * If :overlong is set to :split, the :purge_split option + determines whether the :split_at expression should be removed + from the next lines (defaults to true). + * If :overlong is set to :truncate, the value of the option + :truncate_text is replaced at the end of the truncated line + 2007-02-03 Giuseppe Bilotta <giuseppe.bilotta@gmail.com> * Plugin message mapper: Enhancements to the :requirements option. |