mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-26 02:20:41 +01:00
Services: allow adjusting GHOST command
Anope 2.x has renamed this to /ns recover Closes GH-1510
This commit is contained in:
parent
d372d55c05
commit
21a2ace7a1
@ -86,6 +86,10 @@ conf.registerNetworkValue(Services, 'noJoinsUntilIdentified',
|
|||||||
conf.registerNetworkValue(Services, 'ghostDelay',
|
conf.registerNetworkValue(Services, 'ghostDelay',
|
||||||
registry.NonNegativeInteger(60, _("""Determines how many seconds the bot will
|
registry.NonNegativeInteger(60, _("""Determines how many seconds the bot will
|
||||||
wait between successive GHOST attempts. Set this to 0 to disable GHOST.""")))
|
wait between successive GHOST attempts. Set this to 0 to disable GHOST.""")))
|
||||||
|
conf.registerNetworkValue(Services, 'ghostCommand',
|
||||||
|
registry.String("GHOST", _("""Determines the NickServ command to use for GHOST. If the network
|
||||||
|
you're using runs Anope, set this to "RECOVER". If the network you're using runs Atheme,
|
||||||
|
set this to "GHOST" or "REGAIN".""")))
|
||||||
conf.registerNetworkValue(Services, 'NickServ',
|
conf.registerNetworkValue(Services, 'NickServ',
|
||||||
ValidNickOrEmptyString('NickServ', _("""Determines what nick the 'NickServ' service
|
ValidNickOrEmptyString('NickServ', _("""Determines what nick the 'NickServ' service
|
||||||
has.""")))
|
has.""")))
|
||||||
|
@ -162,7 +162,8 @@ class Services(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
self.log.info('Sending ghost (current nick: %s; ghosting: %s)',
|
self.log.info('Sending ghost (current nick: %s; ghosting: %s)',
|
||||||
irc.nick, nick)
|
irc.nick, nick)
|
||||||
ghost = 'GHOST %s %s' % (nick, password)
|
ghostCommand = self.registryValue('ghostCommand', network=irc.network)
|
||||||
|
ghost = '%s %s %s' % (ghostCommand, nick, password)
|
||||||
# Ditto about the sendMsg (see _doIdentify).
|
# Ditto about the sendMsg (see _doIdentify).
|
||||||
irc.sendMsg(ircmsgs.privmsg(nickserv, ghost))
|
irc.sendMsg(ircmsgs.privmsg(nickserv, ghost))
|
||||||
state.sentGhost = time.time()
|
state.sentGhost = time.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user