fixing iambuttbot, log.py

This commit is contained in:
Ryan Hitchman 2009-04-25 13:33:49 -06:00
parent e9a2429e73
commit ab644b8910
2 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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)