Fixed off-by-one error in loadtrusted in botcmd.py

This commit is contained in:
Juhani Haverinen 2013-07-08 21:06:26 +03:00
parent 612891ba3e
commit 78903fb097
2 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ msglock.release()
def loadtrusted():
trustedlock.acquire()
while len(trusted)>1: trusted.pop() #I'm really sorry but trusted=[] created trusted as local variable
while len(trusted)>0: trusted.pop() #I'm really sorry but trusted=[] created trusted as local variable
f=open('trusted.txt','r')
for line in f:
while len(line)>0 and line[-1]=='\n': line=line[:-1]

Binary file not shown.