Changeset 690

Show
Ignore:
Timestamp:
07/19/06 10:03:05 (2 years ago)
Author:
jajcus
Message:

Another patch by Zbyszek Żółkiewski (kolargol):
- new default server IP address
- log more GG numbers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/sessions.c

    r687 r690  
    192192 
    193193                server=g_new(GgServer, 1); 
    194                 inet_aton("217.17.41.85", &server->addr); 
     194                inet_aton("217.17.45.143", &server->addr); 
    195195                server->port=8074; 
    196196                server->tls=0; 
     
    428428        debug(L_("Checking error conditions...")); 
    429429        if (condition&(G_IO_ERR|G_IO_NVAL)){ 
    430                 if (condition&G_IO_ERR) g_warning(N_("Error on connection for %s"),s->jid); 
     430                if (condition&G_IO_ERR) g_warning(N_("Error on connection for %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); 
    431431                if (condition&G_IO_HUP){ 
    432                         g_warning(N_("Hangup on connection for %s"),s->jid); 
     432                        g_warning(N_("Hangup on connection for %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); 
    433433                        s->current_server=g_list_next(s->current_server); 
    434434                        if(!s->connected && s->current_server!=NULL){ 
     
    446446        event=gg_watch_fd(s->ggs); 
    447447        if (!event){ 
    448                 g_warning(N_("Connection broken. Session of %s"),s->jid); 
     448                g_warning(N_("Connection broken. Session of %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); 
    449449                session_broken(s); 
    450450                return FALSE; 
     
    453453        switch(event->type){ 
    454454                case GG_EVENT_DISCONNECT: 
    455                         g_warning(N_("Server closed connection of %s"),s->jid); 
     455                        g_warning(N_("Server closed connection of %s, [GGnumber: %i]"),s->jid,s->ggs->uin); 
    456456                        session_broken(s); 
    457457                        gg_event_free(event);