Skip to content

Commit

Permalink
Timebomb is no more attached to whoever changes their nick during tim…
Browse files Browse the repository at this point in the history
…ebombing
  • Loading branch information
grompe committed Apr 17, 2013
1 parent 8da3b41 commit 2e1ba16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin_command_timebomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def timer_timebomb(bot, arg):
def event_nick_changed(bot, (presence, room, nick, newnick)):
# bug/feature: reattaching the bomb to different person if original
# has left and someone else changed their nick to timebombed person
if room in timebombed:
if room in timebombed and nick == timebombed[room]['nick']:
timebombed[room]['nick'] = newnick

def command_timebomb(bot, room, nick, access_level, parameters, message):
Expand Down Expand Up @@ -143,4 +143,4 @@ def unload(bot):
bot.timed_events.remove(timebomb_timer)

def info(bot):
return 'Timebomb plugin v1.0'
return 'Timebomb plugin v1.0.1'

0 comments on commit 2e1ba16

Please sign in to comment.