diff --git a/plugins/Debian.py b/plugins/Debian.py index ece893143..485182e9e 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -99,11 +99,21 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader): self.usePythonZegrep = False def usepythonzegrep(self, irc, msg, args): - """takes no arguments""" + """takes no arguments + + Mostly a debuggin tool; tells the module to use its own hand-rolled + zegrep in Python rather than an actual zegrep command. The Python + zegrep is about 50x slower than a real zegrep, so you probably don't + want to do this. + """ self.usePythonZegrep = not self.usePythonZegrep irc.reply(msg, conf.replySuccess) def debfile(self, irc, msg, args): + """ + + Returns the packages in the Debian distribution that include . + """ self.getFile('Contents-i386.gz') # Make sure it's anchored, make sure it doesn't have a leading slash # (the filenames don't have leading slashes, and people may not know diff --git a/plugins/Enforcer.py b/plugins/Enforcer.py index 7723b2e4d..d308f8fe5 100644 --- a/plugins/Enforcer.py +++ b/plugins/Enforcer.py @@ -59,7 +59,13 @@ _chanCap = ircdb.makeChannelCapability class Enforcer(callbacks.Privmsg): started = False def startenforcer(self, irc, msg, args): - """[ ]""" + """[ ] + + Starts the Enforcer plugin. is the nick for the chanserv + aspect of Services (it defaults to ChanServ). is whether to + be *really* nasty to people who break the rules (it's often referred + to in other bots as 'bitch mode.') It defaults to True. + """ self.topics = {} (chanserv, revenge) = privmsgs.getArgs(args, needed=0, optional=2) self.chanserv = chanserv or 'ChanServ' diff --git a/plugins/Google.py b/plugins/Google.py index ec4fd3fc8..f59e5414c 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -223,7 +223,10 @@ class Google(callbacks.PrivmsgCommandAndRegexp): irc.reply(msg, self.formatData(data)) def googlespell(self, irc, msg, args): - "" + """ + + Returns Google's spelling recommendation for . + """ word = privmsgs.getArgs(args) result = google.doSpellingSuggestion(word) if result: