diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-18 14:17:56 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-18 14:17:56 +0100 |
commit | ca84213fa8c98c225a0fe0acc90431f76f6944a7 (patch) | |
tree | 67d14a64d1e70c66eae537b18f5be2893d44639e /src/cmumble.c | |
parent | a70acff952f417ac4f9df750bd59aa4c9cdb01d4 (diff) | |
download | cmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.tar.gz cmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.tar.bz2 cmumble-ca84213fa8c98c225a0fe0acc90431f76f6944a7.zip |
Implement channel join
Diffstat (limited to 'src/cmumble.c')
-rw-r--r-- | src/cmumble.c | 4 |
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; } |