Display server name only when it has been explicitly provided
authorMikael Berthe <mikael@lilotux.net>
Sun, 11 Oct 2009 21:03:40 +0200
changeset 1612 04e3b502aeb4
parent 1611 f9bf561e54d0
child 1613 509fa8558483
Display server name only when it has been explicitly provided Display server name only when it has been explicitly provided in the configuration file.
mcabber/src/xmpp.c
--- a/mcabber/src/xmpp.c	Sun Oct 11 20:58:20 2009 +0200
+++ b/mcabber/src/xmpp.c	Sun Oct 11 21:03:40 2009 +0200
@@ -1634,8 +1634,9 @@
   lm_message_handler_unref(handler);
 
   /* Connect to server */
-  scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "Connecting to server: %s",
-               servername);
+  if (servername)
+    scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "Connecting to server: %s",
+                 servername);
   if (!resource)
     resource = resource_prefix;