Changes in query.c [84b045d:9143aeb]
Legend:
- Unmodified
- Added
- Removed
-
query.c
r84b045d r9143aeb 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 ); … … 140 141 if( ans ) 141 142 { 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 ); 144 148 } 145 149 else 146 150 { 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 ); 149 156 } 150 157 q->data = NULL;
Note: See TracChangeset
for help on using the changeset viewer.