.BANCHO. Add streams and streamList object, add 'main' stream
This commit is contained in:
@@ -205,7 +205,7 @@ def handle(tornadoRequest):
|
||||
|
||||
# Send to everyone our userpanel if we are not restricted
|
||||
if not responseToken.restricted:
|
||||
glob.tokens.enqueueAll(serverPackets.userPanel(userID))
|
||||
glob.streams.broadcast("main", serverPackets.userPanel(userID))
|
||||
|
||||
# Set reponse data to right value and reset our queue
|
||||
responseData = responseToken.queue
|
||||
|
@@ -25,8 +25,11 @@ def handle(userToken, _=None):
|
||||
for i in userToken.joinedChannels:
|
||||
chat.partChannel(token=userToken, channel=i)
|
||||
|
||||
# Leave all joined streams
|
||||
userToken.leaveAllStreams()
|
||||
|
||||
# Enqueue our disconnection to everyone else
|
||||
glob.tokens.enqueueAll(serverPackets.userLogout(userID))
|
||||
glob.streams.broadcast("main", serverPackets.userLogout(userID))
|
||||
|
||||
# Disconnect from IRC if needed
|
||||
if userToken.irc == True and glob.irc == True:
|
||||
|
Reference in New Issue
Block a user