summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 8d5c495..c566780 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -156,6 +156,10 @@ recv_user_state(MumbleProto__UserState *state, struct cmumble *cm)
user = find_user(cm, state->session);
if (user) {
/* update */
+
+ if (state->has_channel_id)
+ user->channel = find_channel(cm, state->channel_id);
+
return;
}