mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-04 01:10:58 -05:00
little change on hilight detection
This commit is contained in:
parent
4322a0bcf1
commit
4e2180eba3
10
plugin.py
10
plugin.py
@ -3200,13 +3200,13 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
||||
if limit == -1:
|
||||
return False
|
||||
count = 0
|
||||
messages = message.split(' ')
|
||||
users = []
|
||||
msg = message.lower()
|
||||
for user in list(irc.state.channels[channel].users):
|
||||
users.append(user)
|
||||
for m in messages:
|
||||
for user in users:
|
||||
if m == user:
|
||||
if len(user) > 2:
|
||||
users.append(user.lower())
|
||||
for user in users:
|
||||
if msg.find(user) != -1:
|
||||
count = count + 1
|
||||
break
|
||||
return count > limit
|
||||
|
Loading…
x
Reference in New Issue
Block a user