mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-29 10:56:57 +01:00
Fixed documentation bugs.
This commit is contained in:
parent
4dfa786c89
commit
63403e6408
@ -99,11 +99,21 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader):
|
|||||||
self.usePythonZegrep = False
|
self.usePythonZegrep = False
|
||||||
|
|
||||||
def usepythonzegrep(self, irc, msg, args):
|
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
|
self.usePythonZegrep = not self.usePythonZegrep
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
|
||||||
def debfile(self, irc, msg, args):
|
def debfile(self, irc, msg, args):
|
||||||
|
"""<file>
|
||||||
|
|
||||||
|
Returns the packages in the Debian distribution that include <file>.
|
||||||
|
"""
|
||||||
self.getFile('Contents-i386.gz')
|
self.getFile('Contents-i386.gz')
|
||||||
# Make sure it's anchored, make sure it doesn't have a leading slash
|
# 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
|
# (the filenames don't have leading slashes, and people may not know
|
||||||
|
@ -59,7 +59,13 @@ _chanCap = ircdb.makeChannelCapability
|
|||||||
class Enforcer(callbacks.Privmsg):
|
class Enforcer(callbacks.Privmsg):
|
||||||
started = False
|
started = False
|
||||||
def startenforcer(self, irc, msg, args):
|
def startenforcer(self, irc, msg, args):
|
||||||
"""[<CHANSERV> <revenge>]"""
|
"""[<CHANSERV> <revenge>]
|
||||||
|
|
||||||
|
Starts the Enforcer plugin. <chanserv> is the nick for the chanserv
|
||||||
|
aspect of Services (it defaults to ChanServ). <revenge> 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 = {}
|
self.topics = {}
|
||||||
(chanserv, revenge) = privmsgs.getArgs(args, needed=0, optional=2)
|
(chanserv, revenge) = privmsgs.getArgs(args, needed=0, optional=2)
|
||||||
self.chanserv = chanserv or 'ChanServ'
|
self.chanserv = chanserv or 'ChanServ'
|
||||||
|
@ -223,7 +223,10 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
irc.reply(msg, self.formatData(data))
|
irc.reply(msg, self.formatData(data))
|
||||||
|
|
||||||
def googlespell(self, irc, msg, args):
|
def googlespell(self, irc, msg, args):
|
||||||
"<word>"
|
"""<word>
|
||||||
|
|
||||||
|
Returns Google's spelling recommendation for <word>.
|
||||||
|
"""
|
||||||
word = privmsgs.getArgs(args)
|
word = privmsgs.getArgs(args)
|
||||||
result = google.doSpellingSuggestion(word)
|
result = google.doSpellingSuggestion(word)
|
||||||
if result:
|
if result:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user