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':
|
||||
return
|
||||
|
||||
if '@' in input or '#' in input:
|
||||
if '@' in input.inp or '#' in input.inp:
|
||||
return #prevent abuse
|
||||
|
||||
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.write(timestamp + ' ' + input.raw + '\n')
|
||||
|
||||
if input.command == 'QUIT':
|
||||
input.chan = 'quit'
|
||||
if input.command == 'QUIT': # these are temporary fixes until proper
|
||||
input.chan = 'quit' # presence tracking is implemented
|
||||
if input.command == 'NICK':
|
||||
input.chan = 'nick'
|
||||
|
||||
beau = beautify(input)
|
||||
|
||||
|
|
Loading…
Reference in New Issue