Allow multiple channel joins by one command

This commit is contained in:
shortcutme 2017-11-05 23:37:32 +01:00
parent bc1d79a07d
commit 754a3db1b9
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -338,9 +338,13 @@ class UiWebsocket(object):
self.response(to, ret) self.response(to, ret)
# Join to an event channel # Join to an event channel
def actionChannelJoin(self, to, channel): def actionChannelJoin(self, to, channels):
if channel not in self.channels: if type(channels) != list:
self.channels.append(channel) channels = [channels]
for channel in channels:
if channel not in self.channels:
self.channels.append(channel)
# Server variables # Server variables
def actionServerInfo(self, to): def actionServerInfo(self, to):