Allow multiple channel joins by one command
This commit is contained in:
parent
bc1d79a07d
commit
754a3db1b9
1 changed files with 7 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue