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