Skip to content

Commit

Permalink
Fix user disconnects from source plugin
Browse files Browse the repository at this point in the history
- transitionGoneUser tried to remove disconnected users
  from groups on the server. Now only done for users still
  connected.
  • Loading branch information
hacst committed Apr 5, 2013
1 parent 2348d1a commit a870769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/source/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a870769

Please sign in to comment.