mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Moved ui_handle_otr_error
This commit is contained in:
parent
ae89028772
commit
dfd55d24cd
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user