]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - ChangeLog
Enhance the :requirements functionality in #map() to allow regexps with capturing...
[user/henk/code/ruby/rbot.git] / ChangeLog
index 941bb6e3db6a42a6318d1c1ce201ef0096e8584e..ababc59d6ac1fe9a1c0c35eae418dcfebd4a0e06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,122 @@
+2007-02-03  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * 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 <giuseppe.bilotta@gmail.com>
+
+       * 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 <giuseppe.bilotta@gmail.com>
+
+       * 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 <giuseppe.bilotta@gmail.com>
+
+       * Timer rescheduling: it is now possible to reschedule the period
+       any particular Action is taken by issuing the command
+               @bot.timer.reschedule(handle, new_period)
+       where +handle+ is a timer handle returned by the @bot.timer.add() that
+       created the action, and new_period is the new period for the Action.
+
+2007-01-23  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Reduced saving: the salut, lart, and quotes plugin now only save
+       their datafiles if anything changed since last time. This speeds up
+       operations such as saving and rescanning; it also allow hand-editing
+       of the data files while the bot is running, since a rescan will load
+       the changed data files without overwriting them with a useless save
+       before. Of course this only works if there are no pending changes in
+       the running bot.
+
+2007-01-12  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Server timeout: rework the server timeout code. Instead of PINGing
+       the server unconditionally every server.ping_timeout seconds, we only
+       PING it if we don't receive anything in the user-chosen timeout (lazy
+       PING). The code rewrite also seems to have fixed the "bot stalling
+       doing nothing" problem, which seemed to have been a consequence of
+       @socket.select not having a timeout.
+
+2006-11-01  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * SSL support: patch from Robin H. Johnson <robbat2@gentoo.org>
+
+2006-10-28  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * A-Z game: try to guess the word the bot is thinking of: every miss
+       helps by reducing the range of allowed words, until it's so small
+       around the correct one that you can't miss it.
+
+2006-10-27  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Flood protection: first attempt at penalty-based flood protection.
+       This should make rbot much less prone to Excess Floods *and* still
+       serve normally without excessive delays.
+
+2006-10-25  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * HttpUtil: Strings returned by get_cached now have a cached? method
+       which returns true or false depending on whether the result was taken
+       from the cache or not; this can be exploited by plugins that parse the
+       result in some particular way, since they can now skip the parsing
+       stage if they cache the parse result.
+
+2006-10-24  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * HttpUtil: initial implementation of proper caching based on
+       last-modified and etag HTTP headers
+
+2006-10-17  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Salut plugin: handles (multilingual) salutations (hello/goodbye)
+
+2006-10-15  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * Language stuff: plugins can now handle language changes in a natural
+       fashion. lart is the first plugin to make use of this. NOTE: this
+       is not (yet) backwards compatible: the old larts/praises files from
+       previous rbot setups have to be renamed manually
+       * Language stuff: italian translations
+       * Utils.safe_save(filename): allows 'safe' saving of a file: it needs a
+       block, to which it will yield a temporary file on which operations can
+       be carried out. When the block returns, the tempfile will be renamed to
+       the given filename
+
+2006-09-21  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * New Auth Framework: restore backwards compatibility: 'auth
+       <masterpassword>' and 'login owner <masterpassword>' both work.
+       * Topic plugin: cleanups. Implement 'topic undo'. 'topic undo' after a
+       'topic undo' undoes the last undo.
+
+2006-09-09  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+       * New Auth Framework: rbot was opping anyone who asked for it (opme
+       plugin). Fixed, and cleaned up.
+
 2006-09-01  Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
 
        * New Auth Framework: document and fine tune permissions view the auth