mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Replaced the old-style irc.queuemsg with newer irc.error
This commit is contained in:
parent
5ff709375e
commit
a2c6084fd9
@ -192,8 +192,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
(gameTitle, wName, wStats, bName, bStats, toMove)
|
(gameTitle, wName, wStats, bName, bStats, toMove)
|
||||||
irc.reply(msg, s, prefixName=False)
|
irc.reply(msg, s, prefixName=False)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
irc.queueMsg(callbacks.reply(msg,
|
irc.error(msg,'That doesn\'t appear to be a proper Gameknot game.')
|
||||||
'That doesn\'t appear to be a proper Gameknot game.'))
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.error(msg, debug.exnToString(e))
|
irc.error(msg, debug.exnToString(e))
|
||||||
|
|
||||||
|
@ -230,8 +230,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
linktype = linktype[:-1]
|
linktype = linktype[:-1]
|
||||||
irc.reply(msg, '%s #%s: %s' % (linktype, num, desc))
|
irc.reply(msg, '%s #%s: %s' % (linktype, num, desc))
|
||||||
except AttributeError, e:
|
except AttributeError, e:
|
||||||
irc.queueMsg(callbacks.reply(msg,
|
irc.error(msg, 'That doesn\'t appear to be a proper Sourceforge '\
|
||||||
'That doesn\'t appear to be a proper Sourceforge bug/rfe.'))
|
'Tracker page.')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.error(msg, debug.exnToString(e))
|
irc.error(msg, debug.exnToString(e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user