This commit is contained in:
parent
34ba0c15f5
commit
c40890918f
1 changed files with 2 additions and 2 deletions
|
@ -343,7 +343,7 @@ while True:
|
||||||
logs[channel] = [{"nick": nick, "content": cont}]
|
logs[channel] = [{"nick": nick, "content": cont}]
|
||||||
else:
|
else:
|
||||||
logs[channel].append({"nick": nick, "content": cont})
|
logs[channel].append({"nick": nick, "content": cont})
|
||||||
if len(logs[channel]) > 128: logs[channel] = logs[channel][:128]
|
if len(logs[channel]) > 128: logs[channel] = logs[channel][::-1][:128][::-1]
|
||||||
#open("log-text-"+channel, "a").write(" ".join(command) + "\n")
|
#open("log-text-"+channel, "a").write(" ".join(command) + "\n")
|
||||||
#open("log-name-"+channel, "a").write(nick + "\n")
|
#open("log-name-"+channel, "a").write(nick + "\n")
|
||||||
except:
|
except:
|
||||||
|
@ -372,7 +372,7 @@ while True:
|
||||||
user = i.lower()
|
user = i.lower()
|
||||||
except: pass
|
except: pass
|
||||||
cache = None
|
cache = None
|
||||||
for i in logs[channel]:
|
for i in logs[channel][::-1]:
|
||||||
if find in i["content"] and (user == None or i["nick"].lower() == user):
|
if find in i["content"] and (user == None or i["nick"].lower() == user):
|
||||||
cache = i
|
cache = i
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue