- Timestamp:
- 2008-07-16T23:22:52Z (16 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
query.c
r9730d72 r6738a67 30 30 static query_t *query_default( irc_t *irc ); 31 31 32 query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data ) 32 query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, 33 query_callback yes, query_callback no, void *data ) 33 34 { 34 35 query_t *q = g_new0( query_t, 1 ); … … 143 144 if( ans ) 144 145 { 145 if( q->ic)146 if( q->ic ) 146 147 imcb_log( q->ic, "Accepted: %s", q->question ); 147 148 else 148 149 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 ); 151 152 } 152 153 else 153 154 { 154 if( q->ic)155 if( q->ic ) 155 156 imcb_log( q->ic, "Rejected: %s", q->question ); 156 157 else 157 158 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 ); 160 161 } 161 162 q->data = NULL;
Note: See TracChangeset
for help on using the changeset viewer.