Changeset 25d1be7 for protocols


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.