Scrap/leech my ass off!/Ban Blocker.txt

18 lines
536 B
Text
Raw Normal View History

2015-03-01 11:03:11 -06:00
def blockBan(log):
ftf = "C:/Program Files/Disney/Disney Online/ToontownOnline/" + str(log)
rf = open('%s'%(ftf),'r')
trash = rf.read()
del trash
def blockBan():
ltp = str(rf.readline())
if "Server is booting us out" in ltp:
messenger.send('pandaRenderError')
else:
None
def loopBanCheck():
seq.append(Func(blockBan))
seq.append(Wait(0.1))
seq.append(Func(loopBanCheck))
seq.start()
loopBanCheck()
blockBan('toontown-110220_123004.log')