Changeset 5c09a59 for protocols/nogaim.c


Ignore:
Timestamp:
2005-11-15T23:16:39Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ef6c6a7
Parents:
9cb9868
Message:

Got rid of raw B's in source,
Replaced most irc_usermsg() calls in nogaim.c with serv_got_crap(),
Slightly clearer handling of buddy add requests.

Thanks to timing for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r9cb9868 r5c09a59  
    122122                        gc->prpl->set_away( gc, s, away );
    123123                        if( set_getint( gc->irc, "debug" ) )
    124                                 irc_usermsg( gc->irc, "Setting away state for %s to %s", proto_name[gc->protocol], s );
     124                                serv_got_crap( gc, "Setting away state to %s", s );
    125125                }
    126126                else
     
    216216void set_login_progress( struct gaim_connection *gc, int step, char *msg )
    217217{
    218         irc_usermsg( gc->irc, "%s(%s) - Logging in: %s", proto_name[gc->protocol], gc->username, msg );
     218        serv_got_crap( gc, "Logging in: %s", msg );
    219219}
    220220
     
    222222void hide_login_progress( struct gaim_connection *gc, char *msg )
    223223{
    224         irc_usermsg( gc->irc, "%s(%s) - Login error: %s", proto_name[gc->protocol], gc->username, msg );
     224        serv_got_crap( gc, "Login error: %s", msg );
    225225}
    226226
     
    228228void hide_login_progress_error( struct gaim_connection *gc, char *msg )
    229229{
    230         irc_usermsg( gc->irc, "%s(%s) - Logged out: %s", proto_name[gc->protocol], gc->username, msg );
     230        serv_got_crap( gc, "Logged out: %s", msg );
    231231}
    232232
     
    276276        u = user_find( gc->irc, gc->irc->nick );
    277277       
    278         irc_usermsg( gc->irc, "%s(%s) - Logged in", proto_name[gc->protocol], gc->username );
     278        serv_got_crap( gc, "Logged in" );
    279279       
    280280        gc->keepalive = g_timeout_add( 60000, send_keepalive, gc );
     
    290290               
    291291                if( u == NULL )
    292                         irc_usermsg( gc->irc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. "
     292                        serv_got_crap( gc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. "
    293293                                              "See \x02""help import_buddies\x02"" for more information." );
    294294        }
     
    323323        account_t *a;
    324324       
    325         irc_usermsg( gc->irc, "%s(%s) - Signing off..", proto_name[gc->protocol], gc->username );
     325        serv_got_crap( gc, "Signing off.." );
    326326
    327327        gaim_input_remove( gc->keepalive );
     
    355355        {
    356356                int delay = set_getint( irc, "auto_reconnect_delay" );
    357                 irc_usermsg( gc->irc, "%s(%s) - Reconnecting in %d seconds..", proto_name[gc->protocol], gc->username, delay);
     357                serv_got_crap( gc, "Reconnecting in %d seconds..", delay );
    358358               
    359359                a->reconnect = 1;
     
    369369void do_error_dialog( struct gaim_connection *gc, char *msg, char *title )
    370370{
    371         irc_usermsg( gc->irc, "%s(%s) - Error: %s", proto_name[gc->protocol], gc->username, msg );
     371        serv_got_crap( gc, "Error: %s", msg );
    372372}
    373373
     
    398398       
    399399        if( set_getint( irc, "debug" ) && 0 ) /* This message is too useless */
    400                 irc_usermsg( irc, "Receiving user add from protocol: %s", handle );
     400                serv_got_crap( gc, "Receiving user add from handle: %s", handle );
    401401       
    402402        if( user_findhandle( gc, handle ) )
    403403        {
    404404                if( set_getint( irc, "debug" ) )
    405                         irc_usermsg( irc, "User already exists, ignoring add request: %s", handle );
     405                        serv_got_crap( gc, "User already exists, ignoring add request: %s", handle );
    406406               
    407407                return;
     
    496496               
    497497                if( ( gc->flags & OPT_LOGGED_IN ) && set_getint( gc->irc, "display_namechanges" ) )
    498                         irc_usermsg( gc->irc, "User `%s' changed name to `%s'", u->nick, u->realname );
     498                        serv_got_crap( gc, "User `%s' changed name to `%s'", u->nick, u->realname );
    499499        }
    500500}
     
    529529                        if( set_getint( gc->irc, "debug" ) || g_strcasecmp( set_getstr( gc->irc, "handle_unknown" ), "ignore" ) != 0 )
    530530                        {
    531                                 irc_usermsg( gc->irc, "serv_got_update() for handle %s on connection %s(%s):", handle, proto_name[gc->protocol], gc->username );
    532                                 irc_usermsg( gc->irc, "loggedin = %d, type = %d", loggedin, type );
     531                                serv_got_crap( gc, "serv_got_update() for handle %s:", handle );
     532                                serv_got_crap( gc, "loggedin = %d, type = %d", loggedin, type );
    533533                        }
    534534                       
     
    610610                {
    611611                        if( set_getint( irc, "debug" ) )
    612                                 irc_usermsg( irc, "Ignoring message from unknown handle %s on connection %s(%s)", handle, proto_name[gc->protocol], gc->username );
     612                                serv_got_crap( gc, "Ignoring message from unknown handle %s", handle );
    613613                       
    614614                        return;
     
    632632                else
    633633                {
    634                         irc_usermsg( irc, "Message from unknown handle %s on connection %s(%s):", handle, proto_name[gc->protocol], gc->username );
     634                        serv_got_crap( gc, "Message from unknown handle %s:", handle );
    635635                        u = user_find( irc, irc->mynick );
    636636                }
     
    692692       
    693693        if( set_getint( gc->irc, "debug" ) )
    694                 irc_usermsg( gc->irc, "You were removed from conversation %d", (int) id );
     694                serv_got_crap( gc, "You were removed from conversation %d", (int) id );
    695695       
    696696        for( c = gc->conversations; c && c->id != id; c = (l=c)->next );
     
    748748                irc_privmsg( gc->irc, u, "PRIVMSG", c->channel, "", msg );
    749749        else
    750                 irc_usermsg( gc->irc, "Message from/to conversation %s@%d (unknown conv/user): %s", who, id, msg );
     750                serv_got_crap( gc, "Message from/to conversation %s@%d (unknown conv/user): %s", who, id, msg );
    751751}
    752752
     
    776776       
    777777        if( set_getint( gc->irc, "debug" ) )
    778                 irc_usermsg( gc->irc, "Creating new conversation: (id=%d,handle=%s)", id, handle );
     778                serv_got_crap( gc, "Creating new conversation: (id=%d,handle=%s)", id, handle );
    779779       
    780780        return( c );
     
    795795       
    796796        if( set_getint( b->gc->irc, "debug" ) )
    797                 irc_usermsg( b->gc->irc, "User %s added to conversation %d", handle, b->id );
     797                serv_got_crap( b->gc, "User %s added to conversation %d", handle, b->id );
    798798       
    799799        /* It might be yourself! */
     
    829829       
    830830        if( set_getint( b->gc->irc, "debug" ) )
    831                 irc_usermsg( b->gc->irc, "User %s removed from conversation %d (%s)", handle, b->id, reason ? reason : "" );
     831                serv_got_crap( b->gc, "User %s removed from conversation %d (%s)", handle, b->id, reason ? reason : "" );
    832832       
    833833        /* It might be yourself! */
Note: See TracChangeset for help on using the changeset viewer.