Changeset 6738a67 for query.c


Ignore:
Timestamp:
2008-07-16T23:22:52Z (16 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
9b55485
Parents:
9730d72 (diff), 6a78c0e (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:

merge in latest trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    r9730d72 r6738a67  
    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 );
     
    143144        if( ans )
    144145        {
    145                 if(q->ic)
     146                if( q->ic )
    146147                        imcb_log( q->ic, "Accepted: %s", q->question );
    147148                else
    148149                        irc_usermsg( irc, "Accepted: %s", q->question );
    149                 if(q->yes)
    150                         q->yes( q->ic ? (gpointer)q->ic : (gpointer)irc, q->data );
     150                if( q->yes )
     151                        q->yes( q->data );
    151152        }
    152153        else
    153154        {
    154                 if(q->ic)
     155                if( q->ic )
    155156                        imcb_log( q->ic, "Rejected: %s", q->question );
    156157                else
    157158                        irc_usermsg( irc, "Rejected: %s", q->question );
    158                 if(q->no)
    159                         q->no( q->ic ? (gpointer)q->ic : (gpointer)irc, q->data );
     159                if( q->no )
     160                        q->no( q->data );
    160161        }
    161162        q->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.