Remove the requirement to set server explicit from the examples.
authorMikael Hallendal <micke@imendio.com>
Sat, 24 Feb 2007 16:52:45 +0100
changeset 246 ef2e388b8412
parent 245 df2655dbe873
child 247 a519eff901e6
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.
examples/lm-send-async.c
examples/lm-send-sync.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;
 	}
--- 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;
 	}