Added host check for TehKuh
This commit is contained in:
parent
df1d48b395
commit
71ab473f01
|
@ -23,11 +23,17 @@ class Useless(DatabasePlugin):
|
||||||
'keep your woahs to yourself',
|
'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+)$')
|
@irc3.event(r'(?i)^:(?P<mask>\S+) JOIN :(?P<target>#\S+)$')
|
||||||
def tehkuh(self, mask, target):
|
def tehkuh(self, mask, target):
|
||||||
nick = IrcString(mask).nick
|
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))
|
self.bot.privmsg(target, '{}: Bouncer'.format(nick))
|
||||||
|
|
||||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(woah|whoa).*$')
|
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(woah|whoa).*$')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user