changeset 2330:3385a4bb62ef default tip

Check setting disable_random_resource correctly
author franky
date Fri, 10 May 2019 00:17:20 +0200
parents 746d72c6e1b9
children
files mcabber/mcabber/xmpp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Thu May 09 23:18:15 2019 +0200
+++ b/mcabber/mcabber/xmpp.c	Fri May 10 00:17:20 2019 +0200
@@ -1855,7 +1855,7 @@
   // Initialize pseudo-random seed
   srandom(time(NULL));
 
-  if (!settings_opt_get("disable_random_resource")) {
+  if (!settings_opt_get_int("disable_random_resource")) {
 #if HAVE_ARC4RANDOM
     dynresource = g_strdup_printf("%s.%08x", resource, arc4random());
 #else