mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 02:54:13 +01:00
Began Relay.reconnect and changed names to nicks.
This commit is contained in:
parent
1d27db449b
commit
d4c7db7a93
@ -1,6 +1,10 @@
|
|||||||
|
* Changed Relay.names to Relay.nicks, to be consistent with
|
||||||
|
Channel.nicks.
|
||||||
|
|
||||||
* Added supybot.brackets, a configuration variable for specifying
|
* Added supybot.brackets, a configuration variable for specifying
|
||||||
which set of matching brackets to use for nested commands. Valid
|
which set of matching brackets to use for nested commands. Valid
|
||||||
values are [] (the default), {}, <>, and ().
|
values are [] (the default), {}, <>, and ().
|
||||||
|
|
||||||
* Added a configuration variable to ChannelLogger, timestamp,
|
* Added a configuration variable to ChannelLogger, timestamp,
|
||||||
which determines whether the bot will timestamp its logfiles.
|
which determines whether the bot will timestamp its logfiles.
|
||||||
This is a channel-specific variable, of course.
|
This is a channel-specific variable, of course.
|
||||||
|
@ -177,6 +177,21 @@ class Relay(callbacks.Privmsg):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
connect = privmsgs.checkCapability(connect, 'owner')
|
connect = privmsgs.checkCapability(connect, 'owner')
|
||||||
|
|
||||||
|
def reconnect(self, irc, msg, args):
|
||||||
|
"""<network>
|
||||||
|
|
||||||
|
Reconnects the bot to <network> when it has become disconnected.
|
||||||
|
"""
|
||||||
|
network = privmsgs.getArgs(args)
|
||||||
|
try:
|
||||||
|
toReconnect = self.ircs[network]
|
||||||
|
except KeyError:
|
||||||
|
irc.error('I\'m not connected to %s.' % network)
|
||||||
|
return
|
||||||
|
toReeconnect.driver.reconnect()
|
||||||
|
irc.replySuccess()
|
||||||
|
reconnect = privmsgs.checkCapability(reconnect, 'owner')
|
||||||
|
|
||||||
def disconnect(self, irc, msg, args):
|
def disconnect(self, irc, msg, args):
|
||||||
"""<network>
|
"""<network>
|
||||||
|
|
||||||
@ -283,7 +298,7 @@ class Relay(callbacks.Privmsg):
|
|||||||
self.ircs[network].queueMsg(ircmsgs.privmsg(channel, text))
|
self.ircs[network].queueMsg(ircmsgs.privmsg(channel, text))
|
||||||
say = privmsgs.checkCapability(say, 'admin')
|
say = privmsgs.checkCapability(say, 'admin')
|
||||||
|
|
||||||
def names(self, irc, msg, args):
|
def nicks(self, irc, msg, args):
|
||||||
"""[<channel>] (only if not sent in the channel itself.)
|
"""[<channel>] (only if not sent in the channel itself.)
|
||||||
|
|
||||||
The <channel> argument is only necessary if the message isn't sent on
|
The <channel> argument is only necessary if the message isn't sent on
|
||||||
|
Loading…
Reference in New Issue
Block a user