- Timestamp:
- 2007-03-31T05:40:45Z (16 years ago)
- Branches:
- master
- Children:
- aef4828
- Parents:
- fa29d093
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
query.c
rfa29d093 r0da65d5 30 30 static query_t *query_default( irc_t *irc ); 31 31 32 query_t *query_add( irc_t *irc, struct gaim_connection *gc, char *question, void *yes, void *no, void *data )32 query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data ) 33 33 { 34 34 query_t *q = g_new0( query_t, 1 ); 35 35 36 q-> gc = gc;36 q->ic = ic; 37 37 q->question = g_strdup( question ); 38 38 q->yes = yes; … … 97 97 } 98 98 99 void query_del_by_ gc( irc_t *irc, struct gaim_connection *gc )99 void query_del_by_conn( irc_t *irc, struct im_connection *ic ) 100 100 { 101 101 query_t *q, *n, *def; … … 107 107 while( q ) 108 108 { 109 if( q-> gc == gc )109 if( q->ic == ic ) 110 110 { 111 111 n = q->next; … … 122 122 123 123 if( count > 0 ) 124 serv_got_crap( gc, "Flushed %d unanswered question(s) for this connection.", count );124 serv_got_crap( ic, "Flushed %d unanswered question(s) for this connection.", count ); 125 125 126 126 q = query_default( irc ); … … 140 140 if( ans ) 141 141 { 142 serv_got_crap( q-> gc, "Accepted: %s", q->question );142 serv_got_crap( q->ic, "Accepted: %s", q->question ); 143 143 q->yes( NULL, q->data ); 144 144 } 145 145 else 146 146 { 147 serv_got_crap( q-> gc, "Rejected: %s", q->question );147 serv_got_crap( q->ic, "Rejected: %s", q->question ); 148 148 q->no( NULL, q->data ); 149 149 } … … 158 158 static void query_display( irc_t *irc, query_t *q ) 159 159 { 160 if( q-> gc )160 if( q->ic ) 161 161 { 162 serv_got_crap( q-> gc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );162 serv_got_crap( q->ic, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question ); 163 163 } 164 164 else
Note: See TracChangeset
for help on using the changeset viewer.