mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 02:26:21 +00:00
ui_smp_recipient_initiated_q takes ProfChatWin
This commit is contained in:
@@ -110,14 +110,13 @@ ui_smp_recipient_initiated(ProfChatWin *chatwin)
|
||||
}
|
||||
|
||||
void
|
||||
ui_smp_recipient_initiated_q(const char *const barejid, const char *question)
|
||||
ui_smp_recipient_initiated_q(ProfChatWin *chatwin, const char *question)
|
||||
{
|
||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||
if (chatwin) {
|
||||
win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "%s wants to authenticate your identity with the following question:", barejid);
|
||||
win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", " %s", question);
|
||||
win_print((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "use '/otr answer <answer>'.");
|
||||
}
|
||||
assert(chatwin != NULL);
|
||||
|
||||
win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "%s wants to authenticate your identity with the following question:", chatwin->barejid);
|
||||
win_vprint((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", " %s", question);
|
||||
win_print((ProfWin*)chatwin, '!', 0, NULL, 0, 0, "", "use '/otr answer <answer>'.");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -67,7 +67,7 @@ void ui_gone_insecure(ProfChatWin *chatwin);
|
||||
void ui_trust(const char *const barejid);
|
||||
void ui_untrust(const char *const barejid);
|
||||
void ui_smp_recipient_initiated(ProfChatWin *chatwin);
|
||||
void ui_smp_recipient_initiated_q(const char *const barejid, const char *question);
|
||||
void ui_smp_recipient_initiated_q(ProfChatWin *chatwin, const char *question);
|
||||
|
||||
void ui_smp_successful(const char *const barejid);
|
||||
void ui_smp_unsuccessful_sender(const char *const barejid);
|
||||
|
||||
Reference in New Issue
Block a user