I was brain-dead when I committed this last time.

This commit is contained in:
James Vega 2004-09-09 16:27:18 +00:00
parent c84c47e8fb
commit 9b5f945d28

View File

@ -427,18 +427,18 @@ class Http(callbacks.Privmsg):
try: try:
if not name: if not name:
if 'X-Bender' in fd.headers: if 'X-Bender' in fd.headers:
return '<Bender> %s' % fd.headers['X-Bender'] irc.reply('<Bender> %s' % fd.headers['X-Bender'])
elif 'X-Fry' in fd.headers: elif 'X-Fry' in fd.headers:
return '<Fry> %s' % fd.headers['X-Fry'] irc.reply('<Fry> %s' % fd.headers['X-Fry'])
else: else:
return 'Slashdot seems to be running low on Futurama ' \ irc.reply('Slashdot seems to be running low on Futurama '
'quotes.' 'quotes.')
else: else:
try: try:
return '<%s> %s' % (name, fd.headers['X-%s' % name]) irc.reply('<%s> %s' % (name, fd.headers['X-%s' % name]))
except KeyError: except KeyError:
return 'Slashdot seems to be running low on %s quotes' %\ irc.reply('Slashdot seems to be running low on %s quotes' %
name name)
finally: finally:
fd.close() fd.close()