mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed module docstring and the order of arguments for startnickserv
This commit is contained in:
parent
0535b87c29
commit
8bafe4ee12
@ -29,7 +29,12 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
"""NickServ: Handles management of nicks with NickServ."""
|
"""
|
||||||
|
NickServ: Handles management of nicks with NickServ.
|
||||||
|
|
||||||
|
Commands include:
|
||||||
|
startnickserv (bot's nick, password, NickServ's nick [defaults to NickServ])
|
||||||
|
"""
|
||||||
|
|
||||||
from baseplugin import *
|
from baseplugin import *
|
||||||
|
|
||||||
@ -47,11 +52,14 @@ class NickServ(callbacks.Privmsg):
|
|||||||
self.started = False
|
self.started = False
|
||||||
|
|
||||||
def startnickserv(self, irc, msg, args):
|
def startnickserv(self, irc, msg, args):
|
||||||
"<bot's nick> <name of the NICKSERV> <password>"
|
"<bot's nick> <password> <NickServ's nick (defaults to NickServ)>"
|
||||||
if ircutils.isChannel(msg.args[0]):
|
if ircutils.isChannel(msg.args[0]):
|
||||||
irc.error(msg, 'Command must not be done in a channel.')
|
irc.error(msg, 'Command must not be done in a channel.')
|
||||||
if ircdb.checkCapability(msg.prefix, 'owner'):
|
if ircdb.checkCapability(msg.prefix, 'owner'):
|
||||||
(self.nick, self.nickserv, self.password)=privmsgs.getArgs(args, 3)
|
(self.nick, self.password, nickserv) = privmsgs.getArgs(args,
|
||||||
|
needed=2,
|
||||||
|
optional=1)
|
||||||
|
self.nickserv = nickserv or 'NickServ'
|
||||||
self.sentGhost = 0
|
self.sentGhost = 0
|
||||||
self._ghosted = re.compile('%s.*killed' % self.nick)
|
self._ghosted = re.compile('%s.*killed' % self.nick)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
Loading…
Reference in New Issue
Block a user