Skip to content

Commit

Permalink
Removed version check from wrapper as it is unneeded, also reverted u…
Browse files Browse the repository at this point in the history
…pdate command names from new/old to just f_update.

Signed-off-by: Eldon McGuinness <[email protected]>
  • Loading branch information
EldonMcGuinness committed Dec 12, 2013
1 parent 96eb189 commit 60fe2d1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def f_reload(bot, trigger):

if sys.version_info >= (2, 7):
@willie.module.nickname_commands('update')
def f_update_new(bot, trigger):
def f_update(bot, trigger):
if not trigger.admin:
return

Expand All @@ -89,7 +89,7 @@ def f_update_new(bot, trigger):
f_reload(bot, trigger)
else:
@willie.module.nickname_commands('update')
def f_update_old(bot, trigger):
def f_update(bot, trigger):
bot.say('You need to run me on Python 2.7 to do that.')


Expand Down Expand Up @@ -141,10 +141,7 @@ def pm_f_reload(bot, trigger):
def pm_f_update(bot, trigger):
"""Wrapper for allowing delivery of .update command via PM"""
if not trigger.sender.startswith('#'):
if sys.version_info >= (2, 7):
f_update_new(bot, trigger)
else:
f_update_old(bot, trigger)
f_update(bot, trigger)


@willie.module.commands("load")
Expand Down

0 comments on commit 60fe2d1

Please sign in to comment.