From 64c97a7c98ac717985daac55b68e8fe0914ab8e3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 2 Sep 2003 19:55:53 +0000 Subject: [PATCH] Added morehelps for some functions. --- src/OwnerCommands.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/OwnerCommands.py b/src/OwnerCommands.py index cf179bd2c..21d08f768 100644 --- a/src/OwnerCommands.py +++ b/src/OwnerCommands.py @@ -50,7 +50,10 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): setattr(self.__class__, 'exec', self._exec) def eval(self, irc, msg, args): - """""" + """ + + Evaluates and returns its value. + """ if conf.allowEval: s = privmsgs.getArgs(args) try: @@ -63,7 +66,10 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): irc.error(msg, conf.replyEvalNotAllowed) def _exec(self, irc, msg, args): - """""" + """ + + Execs . Returns success if it didn't raise any exceptions. + """ if conf.allowEval: s = privmsgs.getArgs(args) try: @@ -264,11 +270,17 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): irc.error(msg, 'There was no callback %s' % name) def cvsup(self, irc, msg, args): - """takes no arguments""" + """takes no arguments + + Returns the return code of 'cvs up' + """ irc.reply(msg, str(os.system('cvs up'))) def say(self, irc, msg, args): - """ """ + """ + + Says in + """ (channel, text) = privmsgs.getArgs(args, needed=2) irc.queueMsg(ircmsgs.privmsg(channel, text))