From ab963499b5437d9c45cc44dfc78c80347ef9cbe3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 6 Jan 2015 21:51:41 +0000 Subject: Log instead of showing error message when chat recipient not found --- src/server_events.c | 2 +- src/ui/core.c | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'src') diff --git a/src/server_events.c b/src/server_events.c index 02522f98..86838ad1 100644 --- a/src/server_events.c +++ b/src/server_events.c @@ -86,7 +86,7 @@ handle_message_error(const char * const jid, const char * const type, // handle recipient not found ('from' contains a value and type is 'cancel') } else if (type != NULL && (strcmp(type, "cancel") == 0)) { - ui_handle_recipient_not_found(jid, err_msg); + log_info("Recipient %s not found: %s", jid, err_msg); chat_session_on_cancel(jid); // handle any other error from recipient 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 -- cgit 1.4.1-2-gfad0
path: root/enumerate/enumerate.cc
blob: 2777c407559f9a1bafb864b1f5396733b84056de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26