mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 16:09:24 +01:00
I was brain-dead when I committed this last time.
This commit is contained in:
parent
c84c47e8fb
commit
9b5f945d28
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user