messagemapper: include defaults in options
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Mar 2009 22:31:14 +0000 (23:31 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Mar 2009 22:31:14 +0000 (23:31 +0100)
commit8ddc8ed81f1f5065705c68d2abda5804319ff981
treea339d4f1d971e05109ca553bb88997c2a8944f2c
parent7ab65c2443f44df753b3b6d2b186b5fd0d17857c
messagemapper: include defaults in options

This change allows the use of :defaults in maps to define values for
parameters which are not actually present in the map itself.

We also move the initialization further down, to skip it in case of
early returns.
lib/rbot/messagemapper.rb