This commit is contained in:
parent
46a0f4e54f
commit
1e59932237
1 changed files with 5 additions and 5 deletions
|
@ -31,13 +31,13 @@ class IRCatModule:
|
||||||
self.memory[ip] = 1 # 1: Just joined the channel, continue observing.
|
self.memory[ip] = 1 # 1: Just joined the channel, continue observing.
|
||||||
print("Autoban> Somebody joined " + target)
|
print("Autoban> Somebody joined " + target)
|
||||||
if target.lower() == "#ircatsucks":
|
if target.lower() == "#ircatsucks":
|
||||||
self.ban(ip)
|
self.ban(ip) # Ruh roh
|
||||||
elif "PRIVMSG" in value:
|
elif "PRIVMSG" in value
|
||||||
if not (ip in self.memory and self.memory[ip] == 0):
|
if not (ip in self.memory and self.memory[ip] == 0): # Continue observing
|
||||||
target = value.split(" ")[1]
|
target = value.split(" ")[1]
|
||||||
content = " ".join(value.split(" ")[2:])[1:]
|
content = " ".join(value.split(" ")[2:])[1:]
|
||||||
if content in self.sus_strings:
|
if content in self.sus_strings:
|
||||||
if ip in self.memory:
|
if ip in self.memory: # Hey stinky! YOU'RE BANNED
|
||||||
if self.memory[ip] == 1:
|
if self.memory[ip] == 1:
|
||||||
self.ban(ip)
|
self.ban(ip)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue