Replaced the old-style irc.queuemsg with newer irc.error

This commit is contained in:
James Vega 2003-10-17 14:18:00 +00:00
parent 5ff709375e
commit a2c6084fd9
2 changed files with 3 additions and 4 deletions

View File

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

View File

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