summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-25 16:41:52 +0100
committerrebecca <ubq323@ubq323.website>2026-09-25 16:49:36 +0100
commit28a876fa341174e8d17640fc215854328ce65b42 (patch)
tree64be5771e6dd48e0d45a3cdc65bcda1f62369277 /main.lua
parent89c71b2939ce610b4251d0d9f22b9e0d2217a106 (diff)
consistentize 'channels' maps in pylons
for live reloading to work, wilson needs to know which channels each pylon currently cares about, so it knows which combination of add_channel and remove_channel to call on each one discord: rename channel_to_webhook --> channels xmpp: rename mucs --> channels quaddle: add channels map
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index bf9a0b6..c06651f 100644
--- a/main.lua
+++ b/main.lua
@@ -47,7 +47,7 @@ function Wilson.make(cls, conf)
end
function Wilson.add_channels_for(self, pylon)
- if not pylon.add_channel then return end
+ if not pylon.channels then return end
for busname, bus in pairs(self.busses) do
for _, channel in ipairs(bus) do
if channel.pylon == pylon then