Update plugin.py (#5)

* Update plugin.py

Add the correct wire in the kick message if `self.showCorrectWire` is set to True

* Update plugin.py

Fixed some coding errors
This commit is contained in:
Vitor Luis 2019-11-02 00:00:34 +01:00 committed by Gordon Shumway
parent 07fd4c5a1a
commit f764d5aff9

View File

@ -175,7 +175,10 @@ class TimeBomb(callbacks.Plugin):
self.irc.sendMsg(ircmsgs.privmsg(self.channel, '\x031,1.......\x034,1`-=\x037,1#$\x038,1%&\x037,1%$#\x034,1=-\'\x031,1........'))
else:
self.irc.sendMsg(ircmsgs.privmsg(self.channel, 'KABOOM!'))
self.irc.queueMsg(ircmsgs.kick(self.channel, self.victim, 'BOOM!'))
if self.showCorrectWire:
self.irc.queueMsg(ircmsgs.kick(self.channel, self.victim, 'BOOM! You should\'ve gone for the {} wire!'.format(self.goodWire)))
else:
self.irc.queueMsg(ircmsgs.kick(self.channel, self.victim, 'BOOM!'))
def reinvite():
if self.victim not in irc.state.channels[self.channel].users: