diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-03-03 23:18:36 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-03-03 23:18:36 +0000 |
commit | 7f421d6b922837857d6aca342da314225023eb46 (patch) | |
tree | 46fc791329bc22af75e399d9d6901e46b548d0b4 /query.c | |
parent | ed3ae7e7d41f91917fc2ae92051c7c77c357fbab (diff) |
BitlBee <= 1.0 didn't have "account set" and allowed one to delete an account
and re-create it with new login settings if necessary, without losing custom
nicknames. Now, nicknames are connected to an account instead of just the
protocol, and they're flushed together with the account. So I added a warning
to make sure nobody accidentally loses any settings while just changing the
password. This will probably go after a few releases, since it's slightly
annoying.
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; |