# HG changeset patch # User Mikael Hallendal # Date 1172332365 -3600 # Node ID ef2e388b841210b6b2946b257631ea439dda3908 # Parent df2655dbe873e8d92c7fba5da91d8ab8b284bc20 Remove the requirement to set server explicit from the examples. Now that we have SRV lookup we can use the server-part of the JID to lookup the server. diff -r df2655dbe873 -r ef2e388b8412 examples/lm-send-async.c --- a/examples/lm-send-async.c Sat Feb 24 16:51:06 2007 +0100 +++ b/examples/lm-send-async.c Sat Feb 24 16:52:45 2007 +0100 @@ -208,7 +208,7 @@ g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free (context); - if (!server || !username || !password || !recipient) { + if (!username || !password || !recipient) { g_printerr ("For usage, try %s --help\n", argv[0]); return EXIT_FAILURE; } diff -r df2655dbe873 -r ef2e388b8412 examples/lm-send-sync.c --- a/examples/lm-send-sync.c Sat Feb 24 16:51:06 2007 +0100 +++ b/examples/lm-send-sync.c Sat Feb 24 16:52:45 2007 +0100 @@ -147,7 +147,7 @@ g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free (context); - if (!server || !username || !password || !recipient) { + if (!username || !password || !recipient) { g_printerr ("For usage, try %s --help\n", argv[0]); return EXIT_FAILURE; }