Skip to content

Commit

Permalink
Strip timezone... that should close 463
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrope committed Mar 7, 2014
1 parent 70d0576 commit 589ad30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def setup(bot):
def f_time(bot, trigger):
"""Returns the current time."""
if trigger.group(2):
zone = get_timezone(bot.db, bot.config, trigger.group(2), None, None)
zone = get_timezone(bot.db, bot.config, trigger.group(2).strip(), None, None)
if not zone:
bot.say('Could not find timezone %s.' % trigger.group(2))
bot.say('Could not find timezone %s.' % trigger.group(2).strip())
return
else:
zone = get_timezone(bot.db, bot.config, None, trigger.nick,
Expand Down

0 comments on commit 589ad30

Please sign in to comment.