From ed1951f414c82fdd720e679ccbe5c39d49b3e75f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 4 Dec 2013 10:32:26 +0100 Subject: Set has_ for optional integer protobuf elements --- src/cmumble.c | 3 +++ src/commands.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/cmumble.c b/src/cmumble.c index 0246789..730695f 100644 --- a/src/cmumble.c +++ b/src/cmumble.c @@ -276,7 +276,9 @@ do_ping(struct cmumble *cm) cmumble_init_ping(&ping); g_get_current_time(&tv); ping.timestamp = tv.tv_sec; + ping.has_timestamp = 1; ping.resync = 1; + ping.has_resync = 1; cmumble_send_ping(cm, &ping); return TRUE; @@ -291,6 +293,7 @@ cmumble_protocol_init(struct cmumble *cm) cmumble_init_version(&version); version.version = 0x010203; + version.has_version = 1; version.release = PACKAGE_STRING; version.os = cmumble_get_os_name(); cmumble_send_version(cm, &version); diff --git a/src/commands.c b/src/commands.c index 2db480d..832e0f3 100644 --- a/src/commands.c +++ b/src/commands.c @@ -103,6 +103,7 @@ msg(struct cmumble *cm, cmumble_init_text_message(&message); message.actor = cm->session; + message.has_actor = 1; if (argc < 2) { g_print("usage: msg message\n"); -- cgit