mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Finally removed supybot.channels.
This commit is contained in:
parent
cd2a06a259
commit
03b740ec9d
@ -134,7 +134,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
||||
ircdb.checkCapability(msg.prefix, 'admin'):
|
||||
self.log.info('Invited to %s by %s.', channel, msg.prefix)
|
||||
irc.queueMsg(ircmsgs.join(channel))
|
||||
conf.supybot.channels().add(channel)
|
||||
conf.supybot.networks.get(irc.network).channels().add(channel)
|
||||
|
||||
def join(self, irc, msg, args):
|
||||
"""<channel>[,<key>] [<channel>[,<key>] ...]
|
||||
|
@ -342,9 +342,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
world.starting = False
|
||||
|
||||
def do376(self, irc, msg):
|
||||
channels = ircutils.IrcSet(conf.supybot.channels())
|
||||
channels |= conf.supybot.networks.get(irc.network).channels()
|
||||
channels = list(channels)
|
||||
channels = list(conf.supybot.networks.get(irc.network).channels())
|
||||
if not channels:
|
||||
return
|
||||
utils.sortBy(lambda s: ',' not in s, channels)
|
||||
|
@ -267,10 +267,6 @@ for (name, s) in registry._cache.iteritems():
|
||||
registerNetwork(name)
|
||||
|
||||
|
||||
registerGlobalValue(supybot, 'channels',
|
||||
SpaceSeparatedSetOfChannels([], """Determines what channels the bot will
|
||||
join when it connects to the server."""))
|
||||
|
||||
###
|
||||
# Reply/error tweaking.
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user