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