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.
--- 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;
}
--- 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;
}