From a8707696a03703374ceb6765017c3d8b3ad14ba8 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Fri, 5 Apr 2013 14:33:10 +0200 Subject: [PATCH] Fix user disconnects from source plugin - transitionGoneUser tried to remove disconnected users from groups on the server. Now only done for users still connected. --- modules/source/source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/source/source.py b/modules/source/source.py index 6b6b67f..b71a5d2 100644 --- a/modules/source/source.py +++ b/modules/source/source.py @@ -209,9 +209,10 @@ def transitionGoneUser(self, mumble_server, old, new, sid): assert(old) self.users.remove(sid, old.state.session) - self.removeFromGroups(mumble_server, old.state.session, old.game, old.server, old.identity["team"]) if new: + self.removeFromGroups(mumble_server, old.state.session, old.game, old.server, old.identity["team"]) + bcid = self.cfg().source.basechannelid self.dlog(sid, old.state, "User stopped playing. Moving to %d.", bcid) self.moveUserToCid(mumble_server, new.state, bcid)