some icons

This commit is contained in:
Yann Leboulanger 2003-11-26 23:50:21 +00:00
parent fd89e34226
commit 57f0b11a38

View file

@ -41,6 +41,9 @@ class plugin:
else: else:
#default #default
lognotusr = 1 lognotusr = 1
# tim = time.strftime("%d%m%y%H%M%S")
tim = time.time()
ev = self.queueIN.get() ev = self.queueIN.get()
if ev[0] == 'QUIT': if ev[0] == 'QUIT':
return return
@ -50,21 +53,21 @@ class plugin:
status = "" status = ""
if lognotsep == 1: if lognotsep == 1:
fic = open(LOGPATH + "notify.log", "a") fic = open(LOGPATH + "notify.log", "a")
fic.write("%d:%s:%s:%s\n" % (time.time(), ev[1][0], \ fic.write("%s:%s:%s:%s\n" % (tim, ev[1][0], \
ev[1][1], status)) ev[1][1], status))
fic.close() fic.close()
if lognotusr == 1: if lognotusr == 1:
fic = open(LOGPATH + ev[1][0], "a") fic = open(LOGPATH + ev[1][0], "a")
fic.write("%d:%s:%s:%s\n" % (time.time(), ev[1][0], \ fic.write("%s:%s:%s:%s\n" % (tim, ev[1][0], \
ev[1][1], status)) ev[1][1], status))
fic.close() fic.close()
elif ev[0] == 'MSG': elif ev[0] == 'MSG':
fic = open(LOGPATH + ev[1][0], "a") fic = open(LOGPATH + ev[1][0], "a")
fic.write("%d:recv:%s\n" % (time.time(), ev[1][1])) fic.write("%s:recv:%s\n" % (tim, ev[1][1]))
fic.close() fic.close()
elif ev[0] == 'MSGSENT': elif ev[0] == 'MSGSENT':
fic = open(LOGPATH + ev[1][0], "a") fic = open(LOGPATH + ev[1][0], "a")
fic.write("%d:sent:%s\n" % (time.time(), ev[1][1])) fic.write("%s:sent:%s\n" % (tim, ev[1][1]))
fic.close() fic.close()
time.sleep(0.5) time.sleep(0.5)