mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added networks command.
This commit is contained in:
parent
caa0790065
commit
aa40c90737
@ -270,12 +270,21 @@ class Relay(callbacks.Privmsg):
|
|||||||
self.Proxy(otherIrc, msg, args)
|
self.Proxy(otherIrc, msg, args)
|
||||||
command = privmsgs.checkCapability(command, 'admin')
|
command = privmsgs.checkCapability(command, 'admin')
|
||||||
|
|
||||||
def nicks(self, irc, msg, args):
|
def networks(self, irc, msg, args):
|
||||||
"""[<channel>] (only if not sent in the channel itself.)
|
"""takes no arguments
|
||||||
|
|
||||||
The <channel> argument is only necessary if the message isn't sent on
|
Returns the networks to which the bot is currently connected.
|
||||||
the channel itself. Returns the nicks of the people in the channel on
|
"""
|
||||||
the various networks the bot is connected to.
|
L = ['%s: %s' % (irc.network, irc.server) for irc in self.ircs]
|
||||||
|
utils.sortBy(str.lower, L)
|
||||||
|
irc.reply(utils.commaAndify(L))
|
||||||
|
|
||||||
|
def nicks(self, irc, msg, args):
|
||||||
|
"""[<channel>]
|
||||||
|
|
||||||
|
Returns the nicks of the people in the channel on the various networks
|
||||||
|
the bot is connected to. <channel> is only necessary if the message
|
||||||
|
isn't sent on the channel itself.
|
||||||
"""
|
"""
|
||||||
realIrc = self._getRealIrc(irc)
|
realIrc = self._getRealIrc(irc)
|
||||||
channel = privmsgs.getChannel(msg, args)
|
channel = privmsgs.getChannel(msg, args)
|
||||||
|
Loading…
Reference in New Issue
Block a user