options: Fix flags for force-online

Thu, 10 May 2018 22:32:29 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Thu, 10 May 2018 22:32:29 -0500
changeset 39024
3338d8afcad6
parent 39022
b40403ec2c9e
child 39025
aafe2eb76e91

options: Fix flags for force-online

The force-online option in libpurple/options.c had mismatched tags
for the way it was intended to work. This caused it to not work
and crash. This patch adjusts the flags to handle calling the
callback as intended.

libpurple/options.c file | annotate | diff | comparison | revisions
--- a/libpurple/options.c	Wed May 09 03:14:08 2018 +0000
+++ b/libpurple/options.c	Thu May 10 22:32:29 2018 -0500
@@ -75,8 +75,8 @@
 			_("print debugging messages to stdout"),
 			_("[colored]")
 		}, {
-			"force-online", 'f', 0,
-			G_OPTION_ARG_NONE, &force_online_cb,
+			"force-online", 'f', G_OPTION_FLAG_NO_ARG,
+			G_OPTION_ARG_CALLBACK, &force_online_cb,
 			_("force online, regardless of network status"),
 			NULL
 		}, {

mercurial