Skip to content

Commit

Permalink
[weather] Strip spaces before searching db for nick
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Nov 1, 2013
1 parent 4613e22 commit 7d7701c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_wind(parsed):
def weather(bot, trigger):
""".weather location - Show the weather at the given location."""

location = trigger.group(2)
location = trigger.group(2).strip()
woeid = ''
if not location:
if bot.db and trigger.nick in bot.db.preferences:
Expand Down

0 comments on commit 7d7701c

Please sign in to comment.