mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Changed gkstats command to respond that the user wasn't found on nonexistent users.
This commit is contained in:
parent
d2f56143dc
commit
fcdcd11ed5
@ -152,7 +152,10 @@ class Http(callbacks.Privmsg):
|
||||
irc.reply(msg, '%s is rated %s and has %s active games; '
|
||||
'W-%s, L-%s, D-%s' % (name, rating, games, w, l, d))
|
||||
except AttributeError:
|
||||
irc.error(msg, 'The format of the page was odd.')
|
||||
if profile.find('User %s not found!' % name) != -1:
|
||||
irc.error(msg, 'No user %s exists.')
|
||||
else:
|
||||
irc.error(msg, 'The format of the page was odd.')
|
||||
except urllib2.URLError:
|
||||
irc.error(msg, 'Couldn\'t connect to gameknot.com.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user