From 589ad30d48c9bb9a040c324d79489093b55f0b7e Mon Sep 17 00:00:00 2001 From: Dimitri Molenaars Date: Fri, 7 Mar 2014 20:07:40 +0100 Subject: [PATCH] Strip timezone... that should close 463 --- clock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clock.py b/clock.py index e0d457f41a..ff047f012d 100644 --- a/clock.py +++ b/clock.py @@ -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,