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,7 +338,11 @@ class UiWebsocket(object):
self.response(to, ret)
# Join to an event channel
def actionChannelJoin(self, to, channel):
def actionChannelJoin(self, to, channels):
if type(channels) != list:
channels = [channels]
for channel in channels:
if channel not in self.channels:
self.channels.append(channel)