comparison mcabber/mcabber/xmpp.c @ 1715:1b6a04703fa0

Do not display Loudmouth's disconnection value when disconnected normally
author Mikael Berthe <mikael@lilotux.net>
date Wed, 17 Feb 2010 18:44:39 +0100
parents 3a1afbfb28dd
children d30fb41725fe
comparison
equal deleted inserted replaced
1714:db15031d5779 1715:1b6a04703fa0
944 rosternotes = NULL; 944 rosternotes = NULL;
945 // Update display 945 // Update display
946 update_roster = TRUE; 946 update_roster = TRUE;
947 scr_UpdateBuddyWindow(); 947 scr_UpdateBuddyWindow();
948 948
949 scr_LogPrint(LPRINT_NORMAL, "Disconnected, reason:%d->'%s'\n", reason, str); 949 if (!reason)
950 scr_LogPrint(LPRINT_LOGNORM, "Disconnected.");
951 else
952 scr_LogPrint(LPRINT_NORMAL, "Disconnected, reason: %d->'%s'", reason, str);
953
950 xmpp_setstatus(offline, NULL, mystatusmsg, TRUE); 954 xmpp_setstatus(offline, NULL, mystatusmsg, TRUE);
951 } 955 }
952 956
953 static void handle_state_events(const char *from, LmMessageNode *node) 957 static void handle_state_events(const char *from, LmMessageNode *node)
954 { 958 {