Changeset 25d1be7


Ignore:
Timestamp:
2005-12-04T00:48:57Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e7f46c5, ed59700
Parents:
8f515c8
Message:

do_error_dialog shouldn't do NULL dereferences anymore, and TYPING notifications are always direct PRIVMSGs.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r8f515c8 r25d1be7  
    15101510                        {
    15111511                                irc_write( irc, ":%s!%s@%s %s %s :%s%s", u->nick, u->user, u->host,
    1512                                            type, to, prefix, line );
     1512                                           type, to, prefix ? prefix : "", line );
    15131513                        }
    15141514                        line = s + 1;
  • protocols/nogaim.c

    r8f515c8 r25d1be7  
    381381void do_error_dialog( struct gaim_connection *gc, char *msg, char *title )
    382382{
    383         serv_got_crap( gc, "Error: %s", msg );
     383        if( msg && title )
     384                serv_got_crap( gc, "Error: %s: %s", title, msg );
     385        else if( msg )
     386                serv_got_crap( gc, "Error: %s", msg );
     387        else if( title )
     388                serv_got_crap( gc, "Error: %s", title );
     389        else
     390                serv_got_crap( gc, "Error" );
    384391}
    385392
     
    698705       
    699706        if( ( u = user_findhandle( gc, handle ) ) )
    700                 irc_msgfrom( gc->irc, u->nick, "\1TYPING 1\1" );
     707                irc_privmsg( gc->irc, u, "PRIVMSG", gc->irc->nick, NULL, "\1TYPING \1" );
    701708}
    702709
Note: See TracChangeset for help on using the changeset viewer.