Use URL command for opening in existing

This avoids making a new connection to an already open network.
This commit is contained in:
TingPing 2013-07-02 12:22:01 -04:00
parent 50219a63ad
commit d1244d7231

View File

@ -120,7 +120,7 @@ hexchat_remote (void)
{ {
for (i = 0; i < g_strv_length(arg_urls); i++) for (i = 0; i < g_strv_length(arg_urls); i++)
{ {
command = g_strdup_printf ("newserver %s", arg_urls[i]); command = g_strdup_printf ("url %s", arg_urls[i]);
if (!dbus_g_proxy_call (remote_object, "Command", if (!dbus_g_proxy_call (remote_object, "Command",
&error, &error,
G_TYPE_STRING, command, G_TYPE_STRING, command,