remind: fix presence of 'in', 'every' or 'at' in message
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 25 Nov 2010 12:49:15 +0000 (13:49 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 25 Nov 2010 12:49:15 +0000 (13:49 +0100)
commitd39aeaf236b8d2865df642b6f8a1070a4a41acf2
treee6ab4da73e1b20400bc56b04849845f1043b9009
parentbd045414cfa2f2332ae766ae80c9e7c225bfa971
remind: fix presence of 'in', 'every' or 'at' in message

if 'in' was present in the message but not part of the time
specification (e.g. because the specification was with 'every' or with
'at'), the parser would fail at the first attempt (look for time after
'in') and fail unnecessarily.

Fix by trying all possibilities and only giving an error if none
succeeds.
data/rbot/plugins/remind.rb