fixing iambuttbot, log.py
This commit is contained in:
parent
e9a2429e73
commit
ab644b8910
|
@ -12,7 +12,7 @@ def iambuttbot(bot, input):
|
||||||
if input.nick.lower() != 'buttbot':
|
if input.nick.lower() != 'buttbot':
|
||||||
return
|
return
|
||||||
|
|
||||||
if '@' in input or '#' in input:
|
if '@' in input.inp or '#' in input.inp:
|
||||||
return #prevent abuse
|
return #prevent abuse
|
||||||
|
|
||||||
password = open('iambuttbot_password').readlines()[0].strip()
|
password = open('iambuttbot_password').readlines()[0].strip()
|
||||||
|
|
|
@ -84,8 +84,10 @@ def log(bot, input):
|
||||||
fd = get_log_fd(bot.persist_dir, bot.network, 'raw')
|
fd = get_log_fd(bot.persist_dir, bot.network, 'raw')
|
||||||
fd.write(timestamp + ' ' + input.raw + '\n')
|
fd.write(timestamp + ' ' + input.raw + '\n')
|
||||||
|
|
||||||
if input.command == 'QUIT':
|
if input.command == 'QUIT': # these are temporary fixes until proper
|
||||||
input.chan = 'quit'
|
input.chan = 'quit' # presence tracking is implemented
|
||||||
|
if input.command == 'NICK':
|
||||||
|
input.chan = 'nick'
|
||||||
|
|
||||||
beau = beautify(input)
|
beau = beautify(input)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue