time plugin: check if argument is a nick earlier
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 11 Dec 2010 13:42:17 +0000 (14:42 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 11 Dec 2010 13:42:17 +0000 (14:42 +0100)
commitaf4a5c5de2581f7082e7d3e404cb64dfccb410de
tree96ba774478951935311d2beb3ca3c4f9e1cbb28a
parent9586b15bfd4f0b616dcc3994262029c9b4f9a6b6
time plugin: check if argument is a nick earlier

When !time <somenick> was being used and the user <somenick> hadn't set
his or her location, the bot would wrongly assume the argument was some
timezone.

Fix by checking against local nicks first.
data/rbot/plugins/time.rb