Added host check for TehKuh

This commit is contained in:
mrhanky 2017-07-06 18:52:24 +02:00
parent df1d48b395
commit 71ab473f01
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -23,11 +23,17 @@ class Useless(DatabasePlugin):
'keep your woahs to yourself',
)
#@irc3.event(r':TehKuh!TehKuh@Clk-48466C1F.dyn.telefonica.de JOIN :(?P<target>\S+')
ISP_HOSTS = (
'vodafone',
'telefonica',
'kabel',
'unity-media',
)
@irc3.event(r'(?i)^:(?P<mask>\S+) JOIN :(?P<target>#\S+)$')
def tehkuh(self, mask, target):
nick = IrcString(mask).nick
if 'TehKuh' in mask:
if 'TehKuh' in mask.lower() and self.ISP_HOSTS in mask.lower():
self.bot.privmsg(target, '{}: Bouncer'.format(nick))
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(woah|whoa).*$')