summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-18 14:17:56 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-18 14:17:56 +0100
commitca84213fa8c98c225a0fe0acc90431f76f6944a7 (patch)
tree67d14a64d1e70c66eae537b18f5be2893d44639e /src/cmumble.c
parenta70acff952f417ac4f9df750bd59aa4c9cdb01d4 (diff)
downloadcmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.tar.gz
cmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.tar.bz2
cmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.zip
Implement channel join
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;
}