Changes in query.c [e67e513:1e52e1f]
Legend:
- Unmodified
- Added
- Removed
-
query.c
re67e513 r1e52e1f 106 106 int count = 0; 107 107 108 if( !ic )109 return;110 111 108 q = irc->queries; 112 109 def = query_default( irc ); … … 150 147 imcb_log( q->ic, "Accepted: %s", q->question ); 151 148 else 152 irc_rootmsg( irc, "Accepted: %s", q->question ); 153 if( q->yes ) 154 q->yes( q->data ); 149 irc_usermsg( irc, "Accepted: %s", q->question ); 150 q->yes( q->data ); 155 151 } 156 152 else … … 159 155 imcb_log( q->ic, "Rejected: %s", q->question ); 160 156 else 161 irc_rootmsg( irc, "Rejected: %s", q->question ); 162 if( q->no ) 163 q->no( q->data ); 157 irc_usermsg( irc, "Rejected: %s", q->question ); 158 q->no( q->data ); 164 159 } 165 160 q->data = NULL; … … 179 174 else 180 175 { 181 irc_ rootmsg( irc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );176 irc_usermsg( irc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question ); 182 177 } 183 178 }
Note: See TracChangeset
for help on using the changeset viewer.