summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:29:45 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:30:11 +0200
commit4b786cf0be8e968542f0b4b783cf2b8ebb44789a (patch)
tree50fbd0e3c852f46b10f4d0df86ece5b22692dc9d /src
parent69b4bec9fdf9f84c359269d57f4e91686c69db41 (diff)
downloadcmumble-4b786cf0be8e968542f0b4b783cf2b8ebb44789a.tar.gz
cmumble-4b786cf0be8e968542f0b4b783cf2b8ebb44789a.tar.bz2
cmumble-4b786cf0be8e968542f0b4b783cf2b8ebb44789a.zip
Print welcome message
Diffstat (limited to 'src')
-rw-r--r--src/cmumble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 9447c9d..d2d60df 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -89,6 +89,8 @@ recv_server_sync(MumbleProto__ServerSync *sync, struct cmumble_context *ctx)
{
ctx->session = sync->session;
+ if (sync->welcome_text)
+ g_print("Welcome Message: %s\n", sync->welcome_text);
g_print("got session: %d\n", ctx->session);
}
@@ -168,7 +170,6 @@ recv_user_state(MumbleProto__UserState *state, struct cmumble_context *ctx)
ctx->users = g_list_prepend(ctx->users, user);
}
-
static const struct {
#define MUMBLE_MSG(a,b) void (* a)(MumbleProto__##a *, \
struct cmumble_context *);