Moved action to Misc from Utilities.

This commit is contained in:
Jeremy Fincher 2003-11-11 11:32:09 +00:00
parent 405f4ab8d9
commit 3b6b478aac
2 changed files with 7 additions and 7 deletions

View File

@ -126,13 +126,6 @@ class Utilities(callbacks.Privmsg):
raise callbacks.ArgumentError raise callbacks.ArgumentError
irc.reply(msg, ' '.join(args), prefixName=False) irc.reply(msg, ' '.join(args), prefixName=False)
def action(self, irc, msg, args):
"""takes any number of arguments
Returns the arguments given it, but as an action.
"""
irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), ' '.join(args)))
def re(self, irc, msg, args): def re(self, irc, msg, args):
"""<regexp> <text> """<regexp> <text>

View File

@ -344,6 +344,13 @@ class Misc(callbacks.Privmsg):
text = privmsgs.getArgs(args) text = privmsgs.getArgs(args)
irc.reply(msg, text, private=True) irc.reply(msg, text, private=True)
def action(self, irc, msg, args):
"""takes any number of arguments
Returns the arguments given it, but as an action.
"""
irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), ' '.join(args)))
def notice(self, irc, msg, args): def notice(self, irc, msg, args):
"""<text> """<text>