aboutsummaryrefslogtreecommitdiffstats
path: root/query.c
diff options
context:
space:
mode:
authorSven Moritz Hallberg <sm@khjk.org>2008-02-10 18:56:59 +0100
committerSven Moritz Hallberg <sm@khjk.org>2008-02-10 18:56:59 +0100
commit94e7eb3aaefc753ea81ea8c9e38570407d4c9790 (patch)
treef30ecaa837ec76c14066591abf6f51eba9a74fe8 /query.c
parent8521b02a157c92b9f6cddca043d30f7659ec2c25 (diff)
add 'otr keygen' command
Diffstat (limited to 'query.c')
-rw-r--r--query.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/query.c b/query.c
index 99be2bee..3ae1ce31 100644
--- a/query.c
+++ b/query.c
@@ -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;