Added echo command.

This commit is contained in:
Jeremy Fincher 2003-04-08 07:19:56 +00:00
parent 94e753aaaa
commit 9a79c6b0ee
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ class Utilities(callbacks.Privmsg):
if sep == '':
sep = None
irc.reply(msg, text.split(sep))
def echo(self, irc, msg, args):
"""takes any number of arguments
Returns the arguments given it.
"""
irc.reply(msg, ' '.join(args))
Class = Utilities
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: