Changeset 5c09a59 for query.c


Ignore:
Timestamp:
2005-11-15T23:16:39Z (15 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
  • query.c

    r9cb9868 r5c09a59  
    127127                disp = 1;
    128128        }
    129        
     129        //Using irc_usermsg instead of serv_got_crap because \x02A is a char too, so a SPACE is needed.
    130130        if( ans )
    131131        {
    132132                q->yes( NULL, q->data );
    133                 irc_usermsg( irc, "Accepted: %s", q->question );
     133                serv_got_crap( q->gc, "\2Accepted\2: %s", q->question );
    134134        }
    135135        else
    136136        {
    137137                q->no( NULL, q->data );
    138                 irc_usermsg( irc, "Rejected: %s", q->question );
     138                serv_got_crap( q->gc, "\2Rejected\2: %s", q->question );
    139139        }
    140140        q->data = NULL;
     
    149149{
    150150        if( q->gc )
    151                 irc_usermsg( irc, "Question on %s connection (handle %s):", proto_name[q->gc->protocol], q->gc->username );
     151        {
     152                serv_got_crap( q->gc, "New request:" );
     153                serv_got_crap( q->gc, "%s\nYou can use the yes/no commands to accept/reject this request.", q->question );
     154        }
    152155        else
    153                 irc_usermsg( irc, "Question:" );
    154        
    155         irc_usermsg( irc, "%s\nYou can use the yes/no commands to answer this question.", q->question );
     156        {
     157                irc_usermsg( irc, "New request:" );
     158                irc_usermsg( irc, "%s\nYou can use the yes/no commands to accept/reject this request.", q->question );
     159        }
    156160}
    157161
Note: See TracChangeset for help on using the changeset viewer.