Changes in query.c [5f4eede:84b045d]
Legend:
- Unmodified
- Added
- Removed
-
query.c
r5f4eede r84b045d 102 102 int count = 0; 103 103 104 if(!ic)105 return;106 107 104 q = irc->queries; 108 105 def = query_default( irc ); … … 143 140 if( ans ) 144 141 { 145 if(q->ic) 146 imcb_log( q->ic, "Accepted: %s", q->question ); 147 else 148 irc_usermsg( irc, "Accepted: %s", q->question ); 149 if(q->yes) 150 q->yes( q->ic ? (gpointer)q->ic : (gpointer)irc, q->data ); 142 imcb_log( q->ic, "Accepted: %s", q->question ); 143 q->yes( NULL, q->data ); 151 144 } 152 145 else 153 146 { 154 if(q->ic) 155 imcb_log( q->ic, "Rejected: %s", q->question ); 156 else 157 irc_usermsg( irc, "Rejected: %s", q->question ); 158 if(q->no) 159 q->no( q->ic ? (gpointer)q->ic : (gpointer)irc, q->data ); 147 imcb_log( q->ic, "Rejected: %s", q->question ); 148 q->no( NULL, q->data ); 160 149 } 161 150 q->data = NULL;
Note: See TracChangeset
for help on using the changeset viewer.