summaryrefslogtreecommitdiff
path: root/quaddle/pylon.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-25 16:33:35 +0100
committerrebecca <ubq323@ubq323.website>2026-09-25 16:35:27 +0100
commit9efee4531261898c5c1666d010a22eab4f3ea457 (patch)
treeef164bfdda3086f8e22a150e465871a2bac9fb4b /quaddle/pylon.lua
parent00060d7965d42386e15dca6361683b72e430808c (diff)
deduplicate add_channel loops
Diffstat (limited to 'quaddle/pylon.lua')
-rw-r--r--quaddle/pylon.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/quaddle/pylon.lua b/quaddle/pylon.lua
index 4387342..86e465a 100644
--- a/quaddle/pylon.lua
+++ b/quaddle/pylon.lua
@@ -41,14 +41,6 @@ function Quaddle._connect(self)
self.ws = websocket.new_from_uri(self.base_url:gsub("^http","ws").."app")
assert(self.ws:connect())
self.ws:send(json.encode{ op="identify", token=self.token }, 'text')
-
- for busname, bus in pairs(self.wilson.busses) do
- for _, channel in ipairs(bus) do
- if channel.pylon == self then
- self:add_channel(channel)
- end
- end
- end
end
function Quaddle.add_channel(self, channel)