Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/xmpp.c @ 1614:816fb624801d
Slightly change debugging output
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Oct 2009 21:37:02 +0200 |
parents | 509fa8558483 |
children | 171ae5a258fa |
comparison
equal
deleted
inserted
replaced
1613:509fa8558483 | 1614:816fb624801d |
---|---|
1632 LM_MESSAGE_TYPE_PRESENCE, | 1632 LM_MESSAGE_TYPE_PRESENCE, |
1633 LM_HANDLER_PRIORITY_NORMAL); | 1633 LM_HANDLER_PRIORITY_NORMAL); |
1634 lm_message_handler_unref(handler); | 1634 lm_message_handler_unref(handler); |
1635 | 1635 |
1636 /* Connect to server */ | 1636 /* Connect to server */ |
1637 if (servername) | 1637 scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "Connecting to server: %s", |
1638 scr_LogPrint(LPRINT_NORMAL|LPRINT_DEBUG, "Connecting to server: %s", | 1638 servername ? servername : "..."); |
1639 servername); | |
1640 if (!resource) | 1639 if (!resource) |
1641 resource = resource_prefix; | 1640 resource = resource_prefix; |
1642 | 1641 |
1643 if (!settings_opt_get("disable_random_resource")) { | 1642 if (!settings_opt_get("disable_random_resource")) { |
1644 #if HAVE_ARC4RANDOM | 1643 #if HAVE_ARC4RANDOM |
1708 } | 1707 } |
1709 | 1708 |
1710 if (!port) | 1709 if (!port) |
1711 port = (ssl ? LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT); | 1710 port = (ssl ? LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT); |
1712 lm_connection_set_port(lconnection, port); | 1711 lm_connection_set_port(lconnection, port); |
1713 scr_LogPrint(LPRINT_LOGNORM, "Port: %i\n", port); | |
1714 | 1712 |
1715 if (ssl_fpr && (!hex_to_fingerprint(ssl_fpr, fpr))) { | 1713 if (ssl_fpr && (!hex_to_fingerprint(ssl_fpr, fpr))) { |
1716 scr_LogPrint(LPRINT_LOGNORM, "** Plese set the fingerprint in the format " | 1714 scr_LogPrint(LPRINT_LOGNORM, "** Plese set the fingerprint in the format " |
1717 "97:5C:00:3F:1D:77:45:25:E2:C5:70:EC:83:C8:87:EE"); | 1715 "97:5C:00:3F:1D:77:45:25:E2:C5:70:EC:83:C8:87:EE"); |
1718 return; | 1716 return; |