X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=ChangeLog;h=0f61dec0131d3125fe95e0bd84b106cdcb116d22;hb=bcacf025a0d2cbba181ad3e55fba30926286f9c8;hp=ad0315d048ccb56a01f4bc287a5b5dd6acce90ab;hpb=a6c084a18ba6a9bb189dd6376d593cfe232a4321;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/ChangeLog b/ChangeLog index ad0315d0..0f61dec0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,65 @@ +2007-02-05 Giuseppe Bilotta + + * 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 + * LinkBot plugin: initial commit of a plugin to handle messages from + eggdrops and other bots that act as cross-network channel links. + Suggested by hagabaka (Yaohan Chen ) + + +2007-02-03 Giuseppe Bilotta + + * Plugin message mapper: Enhancements to the :requirements option. + When the requirement of a parameter is a regular expression with + capturing groups /(...)/, the corresponding map parameters will be + assigned (by default) the first non-nil capture instead of the whole + regular expression. If a specific capture group is desired instead, + the requirement should be in the form + [/some regexp/, integer_index_of_the_desired_group] + or in the form + { + :regexp => /some regexp/, + :index => integer_index_of_the_desired_group + } + and a nil index will still give the default behavior. + If you want the whole regular expression to be the matched parameter + value, there are three options: use an index of 0, wrap the whole + regular expression in a capturing group, or use non-capturing groups + /(?:...)/. The latter is preferred because it's much faster. + When exploiting the capturing groups feature, please try to remember + to use /\s+/ instead of plain spaces / /, unless it's absolutely + necessary to have single spaces. + +2007-02-02 Giuseppe Bilotta + + * Plugin message mapper: Requirements (as set by the :requirements + hash) are now embedded in the regular expression matcher rather than + being cheked separately afterwards. + +2007-01-30 Giuseppe Bilotta + + * New IRC Framework: Server methods to retrieve a Channel or User are + now more robust to empty or nil nicks and channel names passed as + parameters. + 2007-01-29 Giuseppe Bilotta * Timer rescheduling: it is now possible to reschedule the period