diff options
author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-10 18:56:59 +0100 |
---|---|---|
committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-10 18:56:59 +0100 |
commit | 94e7eb3aaefc753ea81ea8c9e38570407d4c9790 (patch) | |
tree | f30ecaa837ec76c14066591abf6f51eba9a74fe8 /query.c | |
parent | 8521b02a157c92b9f6cddca043d30f7659ec2c25 (diff) |
add 'otr keygen' command
Diffstat (limited to 'query.c')
-rw-r--r-- | query.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -139,12 +139,18 @@ void query_answer( irc_t *irc, query_t *q, int ans ) } if( ans ) { - imcb_log( q->ic, "Accepted: %s", q->question ); + if(q->ic) + imcb_log( q->ic, "Accepted: %s", q->question ); + else + irc_usermsg( irc, "Accepted: %s", q->question ); q->yes( NULL, q->data ); } else { - imcb_log( q->ic, "Rejected: %s", q->question ); + if(q->ic) + imcb_log( q->ic, "Rejected: %s", q->question ); + else + irc_usermsg( irc, "Rejected: %s", q->question ); q->no( NULL, q->data ); } q->data = NULL; |