aboutsummaryrefslogtreecommitdiffstats
path: root/query.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-11-19 16:24:46 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-11-19 16:24:46 +0100
commit9c8ae507985a29b41a22cf30b803141e9ba82a9b (patch)
treee8e96ff2e33512018e7838dfa58983c45a7e0062 /query.c
parentcc9079ee091707aba3d5b0580a6191eb4541cbec (diff)
parent2cdd8ce76ce334327c84516ff78f3b00bef5bebf (diff)
Merge Wilmer
Diffstat (limited to 'query.c')
-rw-r--r--query.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/query.c b/query.c
index 90d0e923..670dde36 100644
--- a/query.c
+++ b/query.c
@@ -126,16 +126,16 @@ void query_answer( irc_t *irc, query_t *q, int ans )
q = query_default( irc );
disp = 1;
}
-
+ //Using irc_usermsg instead of serv_got_crap because \x02A is a char too, so a SPACE is needed.
if( ans )
{
q->yes( NULL, q->data );
- irc_usermsg( irc, "Accepted: %s", q->question );
+ serv_got_crap( q->gc, "Accepted: %s", q->question );
}
else
{
q->no( NULL, q->data );
- irc_usermsg( irc, "Rejected: %s", q->question );
+ serv_got_crap( q->gc, "Rejected: %s", q->question );
}
q->data = NULL;
@@ -148,11 +148,13 @@ void query_answer( irc_t *irc, query_t *q, int ans )
static void query_display( irc_t *irc, query_t *q )
{
if( q->gc )
- irc_usermsg( irc, "Question on %s connection (handle %s):", q->gc->prpl->name, q->gc->username );
+ {
+ serv_got_crap( q->gc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );
+ }
else
- irc_usermsg( irc, "Question:" );
-
- irc_usermsg( irc, "%s\nYou can use the yes/no commands to answer this question.", q->question );
+ {
+ irc_usermsg( irc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );
+ }
}
static query_t *query_default( irc_t *irc )