Restrict bounce trigger to #w0bm

This commit is contained in:
mrhanky 2017-08-04 01:27:12 +02:00
parent f5e47313e3
commit cc42cdbda0
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -37,7 +37,7 @@ class Useless(DatabasePlugin):
def bounce(self, mask, target): def bounce(self, mask, target):
nick = IrcString(mask).nick nick = IrcString(mask).nick
if nick == self.bot.nick: if target != '#w0bm' or nick == self.bot.nick:
return return
self.bot.privmsg(target, '{}: Du musst bouncen!'.format(nick)) self.bot.privmsg(target, '{}: Du musst bouncen!'.format(nick))