mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Moved action to Misc from Utilities.
This commit is contained in:
parent
405f4ab8d9
commit
3b6b478aac
@ -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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user