aboutsummaryrefslogtreecommitdiffstats
path: root/query.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-24 00:12:24 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-24 00:12:24 +0100
commitbe999a5385ff4e9ac7416de4cca3288f18cee85c (patch)
treeddd6a6e256719c378e9748e0d96791e11844f659 /query.c
parent237eadd361a7ed1d2a49180056d12b57f6f3cc0a (diff)
parenteb6df6a280c458546ebc57126e63a828674b4cd8 (diff)
First step in this merge. Mostly a bzr merge and then a cleanup of conflicts
and parts I want to/have to redo (because of ui-fix).
Diffstat (limited to 'query.c')
-rw-r--r--query.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/query.c b/query.c
index 67382b79..9429f2d2 100644
--- a/query.c
+++ b/query.c
@@ -105,6 +105,9 @@ void query_del_by_conn( irc_t *irc, struct im_connection *ic )
query_t *q, *n, *def;
int count = 0;
+ if( !ic )
+ return;
+
q = irc->queries;
def = query_default( irc );
@@ -147,7 +150,8 @@ void query_answer( irc_t *irc, query_t *q, int ans )
imcb_log( q->ic, "Accepted: %s", q->question );
else
irc_usermsg( irc, "Accepted: %s", q->question );
- q->yes( q->data );
+ if( q->yes )
+ q->yes( q->data );
}
else
{
@@ -155,7 +159,8 @@ void query_answer( irc_t *irc, query_t *q, int ans )
imcb_log( q->ic, "Rejected: %s", q->question );
else
irc_usermsg( irc, "Rejected: %s", q->question );
- q->no( q->data );
+ if( q->no )
+ q->no( q->data );
}
q->data = NULL;