aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-06 21:51:41 +0000
committerJames Booth <boothj5@gmail.com>2015-01-06 21:51:41 +0000
commitab963499b5437d9c45cc44dfc78c80347ef9cbe3 (patch)
tree0f08a6a8e441f73c156bf772f7ba3d9849935479 /src/ui
parentc04b90ce301e9737f23ed81515b2ef4dd15297a8 (diff)
downloadprofani-tty-ab963499b5437d9c45cc44dfc78c80347ef9cbe3.tar.gz
Log instead of showing error message when chat recipient not found
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index d5e01d94..fafa4377 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -586,14 +586,6 @@ ui_update_presence(const resource_presence_t resource_presence,
void
ui_handle_recipient_not_found(const char * const recipient, const char * const err_msg)
{
- // unknown chat recipient
- ProfChatWin *chatwin = wins_get_chat(recipient);
- if (chatwin) {
- cons_show_error("Recipient %s not found: %s", recipient, err_msg);
- win_save_vprint((ProfWin*) chatwin, '!', NULL, 0, THEME_ERROR, "", "Recipient %s not found: %s", recipient, err_msg);
- return;
- }
-
// intended recipient was invalid chat room
ProfMucWin *mucwin = wins_get_muc(recipient);
if (mucwin) {
@@ -601,17 +593,6 @@ ui_handle_recipient_not_found(const char * const recipient, const char * const e
win_save_vprint((ProfWin*) mucwin, '!', NULL, 0, THEME_ERROR, "", "Room %s not found: %s", recipient, err_msg);
return;
}
-
- // unknown private recipient
- ProfPrivateWin *privatewin = wins_get_private(recipient);
- if (privatewin) {
- cons_show_error("Recipient %s not found: %s", recipient, err_msg);
- win_save_vprint((ProfWin*) privatewin, '!', NULL, 0, THEME_ERROR, "", "Recipient %s not found: %s", recipient, err_msg);
- return;
- }
-
- // no window
- cons_show_error("Recipient %s not found: %s", recipient, err_msg);
}
void