mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -05:00
self
This commit is contained in:
parent
590888ba33
commit
bfa97f99ae
@ -18,7 +18,7 @@ class BotChannels():
|
|||||||
"InitialProcess": False
|
"InitialProcess": False
|
||||||
}
|
}
|
||||||
|
|
||||||
def channel_list_request(bot):
|
def channel_list_request(self, bot):
|
||||||
bot.write(['LIST'])
|
bot.write(['LIST'])
|
||||||
|
|
||||||
def channel_list_recieve_start(self):
|
def channel_list_recieve_start(self):
|
||||||
@ -43,7 +43,7 @@ class BotChannels():
|
|||||||
topic = re.sub(actual_topic, r'\1', topic)
|
topic = re.sub(actual_topic, r'\1', topic)
|
||||||
return topic
|
return topic
|
||||||
|
|
||||||
def bot_part_empty(bot):
|
def bot_part_empty(self, bot):
|
||||||
"""Don't stay in empty channels"""
|
"""Don't stay in empty channels"""
|
||||||
ignorepartlist = []
|
ignorepartlist = []
|
||||||
if bot.config.core.logging_channel:
|
if bot.config.core.logging_channel:
|
||||||
@ -54,7 +54,7 @@ class BotChannels():
|
|||||||
if channel.lower() in botchannels.SpiceBot_Channels['list']:
|
if channel.lower() in botchannels.SpiceBot_Channels['list']:
|
||||||
del botchannels.SpiceBot_Channels['list'][channel.lower()]
|
del botchannels.SpiceBot_Channels['list'][channel.lower()]
|
||||||
|
|
||||||
def join_all_channels(bot):
|
def join_all_channels(self, bot):
|
||||||
if bot.config.SpiceBot_Channels.joinall:
|
if bot.config.SpiceBot_Channels.joinall:
|
||||||
for channel in botchannels.SpiceBot_Channels['list'].keys():
|
for channel in botchannels.SpiceBot_Channels['list'].keys():
|
||||||
if channel.startswith("#"):
|
if channel.startswith("#"):
|
||||||
@ -63,7 +63,7 @@ class BotChannels():
|
|||||||
if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin:
|
if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin:
|
||||||
bot.write(('SAJOIN', bot.nick, botchannels.SpiceBot_Channels['list'][channel]['name']))
|
bot.write(('SAJOIN', bot.nick, botchannels.SpiceBot_Channels['list'][channel]['name']))
|
||||||
|
|
||||||
def chanadmin_all_channels(bot):
|
def chanadmin_all_channels(self, bot):
|
||||||
# Chan ADMIN +a
|
# Chan ADMIN +a
|
||||||
for channel in bot.channels.keys():
|
for channel in bot.channels.keys():
|
||||||
if channel.startswith("#"):
|
if channel.startswith("#"):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user