aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_save.py
diff options
context:
space:
mode:
authorGravatar dngfx2018-08-31 10:51:47 +0100
committerGravatar dngfx2018-08-31 10:51:47 +0100
commit90ce92dc39395444862edfc7946ef7a1195f2464 (patch)
tree6832c146a15879df292d265083bfe5795cbdfa69 /modules/channel_save.py
parentReformat (diff)
Revert "Reformat"
This reverts commit abed9cf
Diffstat (limited to 'modules/channel_save.py')
-rw-r--r--modules/channel_save.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/channel_save.py b/modules/channel_save.py
index 34307b30..c70d8751 100644
--- a/modules/channel_save.py
+++ b/modules/channel_save.py
@@ -1,3 +1,5 @@
+
+
class Module(object):
def __init__(self, bot):
bot.events.on("received.numeric.001").hook(
@@ -6,15 +8,14 @@ class Module(object):
bot.events.on("self.kick").hook(self.on_kick)
def on_connect(self, event):
- channels = event["server"].get_setting("autojoin", [])
+ channels = event["server"].get_setting("autojoin", [])
chan_keys = event["server"].get_setting("channel_keys", {})
channels_sorted = sorted(channels,
- key=lambda x: 0 if x in chan_keys else 1)
+ key=lambda x: 0 if x in chan_keys else 1)
keys_sorted = list(map(lambda x: x[1],
- sorted(chan_keys.items(),
- key=lambda x: channels_sorted.index(
- x[0]))))
+ sorted(chan_keys.items(),
+ key=lambda x: channels_sorted.index(x[0]))))
for i in range(len(channels_sorted)):
channel = channels_sorted[i]