Changeset b79308b for query.c


Ignore:
Timestamp:
2008-04-14T13:10:53Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
0cab388
Parents:
6cac643 (diff), aa31117 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merged in upstream r379 (somewhere after 1.2-3).
Just one trivial conflict in the jabber Makefile, went smoothly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    r6cac643 rb79308b  
    3030static query_t *query_default( irc_t *irc );
    3131
    32 query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data )
     32query_t *query_add( irc_t *irc, struct im_connection *ic, char *question,
     33                    query_callback yes, query_callback no, void *data )
    3334{
    3435        query_t *q = g_new0( query_t, 1 );
     
    140141        if( ans )
    141142        {
    142                 imcb_log( q->ic, "Accepted: %s", q->question );
    143                 q->yes( NULL, q->data );
     143                if( q->ic )
     144                        imcb_log( q->ic, "Accepted: %s", q->question );
     145                else
     146                        irc_usermsg( irc, "Accepted: %s", q->question );
     147                q->yes( q->data );
    144148        }
    145149        else
    146150        {
    147                 imcb_log( q->ic, "Rejected: %s", q->question );
    148                 q->no( NULL, q->data );
     151                if( q->ic )
     152                        imcb_log( q->ic, "Rejected: %s", q->question );
     153                else
     154                        irc_usermsg( irc, "Rejected: %s", q->question );
     155                q->no( q->data );
    149156        }
    150157        q->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.