Skip to content
Snippets Groups Projects
Commit 4c0a2297 authored by Svetlana Tkachenko's avatar Svetlana Tkachenko
Browse files

edit blockbot kick messages, ns password setting name

parent 0ee6381b
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class Blockbot(object):
ldata = message.lower()
for each in self.findlist:
if re.search(each, ldata):
self.server.doKick(channel, nick, 'You have matched a spam string and have been banned, if you this is a mistake, contact a channel op to be unbanned')
self.server.doKick(channel, nick, 'spam')
return
# Extract messages by this user
......@@ -45,7 +45,7 @@ class Blockbot(object):
# Check for flooding
if self.get_mps(user_msgs) > self.mps_limit:
self.server.doKick(channel, nick,'Please do not flood')
self.server.doKick(channel, nick,'flood')
self.msglist.pop(0)
# Check for repeats
......@@ -57,7 +57,7 @@ class Blockbot(object):
else:
repeats += 1
if repeats > self.repeat_limit-1:
self.server.doKick(channel, nick, 'Do not repeat yourself...')
self.server.doKick(channel, nick, 'flood/repetition')
self.msglist.pop(0)
# Clear out old messages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment