Better handling of MessageMapper failures
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 7 Aug 2009 23:40:18 +0000 (01:40 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 11 Aug 2009 22:56:27 +0000 (00:56 +0200)
commita993d1c358e24ab85621568c10411c5496e2dea8
treeacde205a3ed605476f6eabf6e04c0b0441a7e10f
parent74d7d02ed07740e50c3f87da9ecedf13397729ea
Better handling of MessageMapper failures

The plugin fallback method is now passed the list of failures.

Failures themselves are encapsulated in their own data type, making it
easier to handle failures that should inform the user with something
more detailed than the classic 'usage' pattern.

It's still up to the fallback method to make use (e.g. echo) the
relevant messages.
lib/rbot/messagemapper.rb
lib/rbot/plugins.rb