I hate this shit.
parent
74ba5b1d77
commit
5658b93b02
2
log.py
2
log.py
|
@ -5,7 +5,6 @@ Copyright 2014, sfan5
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import sys
|
|
||||||
|
|
||||||
loglevels = {
|
loglevels = {
|
||||||
'TEXT': 'TXT', # TEXT: purely informal message that appears in masses e.g. a command being executed
|
'TEXT': 'TXT', # TEXT: purely informal message that appears in masses e.g. a command being executed
|
||||||
|
@ -24,7 +23,6 @@ def log(level, text, phenny):
|
||||||
f.close()
|
f.close()
|
||||||
if level == 'ACTION':
|
if level == 'ACTION':
|
||||||
phenny.write(['PRIVMSG', actionchannel], actionhighlight + ": " + text)
|
phenny.write(['PRIVMSG', actionchannel], actionhighlight + ": " + text)
|
||||||
sys.stdout.write(bytes(level + " " + text, 'utf-8', 'ignore'))
|
|
||||||
|
|
||||||
def fmt_user(input):
|
def fmt_user(input):
|
||||||
return "%s(%s)" % (input.nick, input.hostmask)
|
return "%s(%s)" % (input.nick, input.hostmask)
|
||||||
|
|
Loading…
Reference in New Issue