Convert irc.queueMsg(callbacks.reply to irc.reply

This commit is contained in:
James Vega 2003-10-23 14:52:59 +00:00
parent 8b200efaa0
commit 7e01b8a74d

View File

@ -43,25 +43,25 @@ class Friendly(callbacks.PrivmsgRegexp):
r"(?:heya?|(?:w(?:hat'?s\b|as)s?up)|howdy|hi|hello)$"
if irc.nick in msg.args[1]:
s = 'howdy, %s :)' % msg.nick
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
irc.reply(msg, s, prefixName=False)
def goodbye(self, irc, msg, match):
r"(?:good)?bye|adios|vale|ciao|au revoir|seeya|night$"
if irc.nick in msg.args[1]:
s = 'seeya, %s!' % msg.nick
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
irc.reply(msg, s, prefixName=False)
def exclaim(self, irc, msg, match):
r"^([^\s]+)!$"
if match.group(1) == irc.nick:
s = msg.nick + '!'
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
irc.reply(msg, s, prefixName=False)
def beGracious(self, irc, msg, match):
r"\b(?:thank'?s?|thx|tnks?)\b"
if irc.nick in msg.args[1]:
s = 'you\'re welcome, %s' % msg.nick
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
irc.reply(msg, s, prefixName=False)
Class = Friendly