diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-12-04 10:32:26 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-12-04 12:10:48 +0100 |
commit | ed1951f414c82fdd720e679ccbe5c39d49b3e75f (patch) | |
tree | d959a6b40ab7394b9e3c45e933767650cb2bdf76 | |
parent | b187a34ad9bc81921d24010e398c97b9501650e4 (diff) | |
download | cmumble-ed1951f414c82fdd720e679ccbe5c39d49b3e75f.tar.gz cmumble-ed1951f414c82fdd720e679ccbe5c39d49b3e75f.tar.bz2 cmumble-ed1951f414c82fdd720e679ccbe5c39d49b3e75f.zip |
Set has_<key> for optional integer protobuf elements
-rw-r--r-- | src/cmumble.c | 3 | ||||
-rw-r--r-- | src/commands.c | 1 |
2 files changed, 4 insertions, 0 deletions
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"); |