mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 04:36:21 +00:00
Moved ui_handle_otr_error
This commit is contained in:
@@ -179,17 +179,6 @@ chatwin_otr_untrust(ProfChatWin *chatwin)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ui_handle_otr_error(const char *const barejid, const char *const message)
|
|
||||||
{
|
|
||||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
|
||||||
if (chatwin) {
|
|
||||||
win_print((ProfWin*)chatwin, '!', 0, NULL, 0, THEME_ERROR, "", message);
|
|
||||||
} else {
|
|
||||||
cons_show_error("%s - %s", barejid, message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
chatwin_recipient_gone(ProfChatWin *chatwin)
|
chatwin_recipient_gone(ProfChatWin *chatwin)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -549,6 +549,17 @@ ui_handle_recipient_error(const char *const recipient, const char *const err_msg
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ui_handle_otr_error(const char *const barejid, const char *const message)
|
||||||
|
{
|
||||||
|
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||||
|
if (chatwin) {
|
||||||
|
win_print((ProfWin*)chatwin, '!', 0, NULL, 0, THEME_ERROR, "", message);
|
||||||
|
} else {
|
||||||
|
cons_show_error("%s - %s", barejid, message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_handle_error(const char *const err_msg)
|
ui_handle_error(const char *const err_msg)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user