From 50271493b70f3b9362af1cb17a6e70dceda47f4d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 13 Feb 2020 09:25:11 +0100 Subject: [PATCH] xep-0308: remove replace_id from privwin signature No `/correct` allowed in privwins --- src/event/client_events.c | 2 +- src/ui/privwin.c | 4 ++-- src/ui/ui.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event/client_events.c b/src/event/client_events.c index 0f50594f..e704de78 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -405,7 +405,7 @@ cl_ev_send_priv_msg(ProfPrivateWin *privwin, const char *const msg, const char * message_send_private(privwin->fulljid, plugin_msg, oob_url); chat_log_msg_out(jidp->barejid, plugin_msg, jidp->resourcepart); - privwin_outgoing_msg(privwin, NULL, NULL, plugin_msg); + privwin_outgoing_msg(privwin, plugin_msg); plugins_post_priv_message_send(privwin->fulljid, plugin_msg); diff --git a/src/ui/privwin.c b/src/ui/privwin.c index 9a64cd13..8fc1bcc7 100644 --- a/src/ui/privwin.c +++ b/src/ui/privwin.c @@ -91,11 +91,11 @@ privwin_incoming_msg(ProfPrivateWin *privatewin, ProfMessage *message) } void -privwin_outgoing_msg(ProfPrivateWin *privwin, const char *const id, const char *const replace_id, const char *const message) +privwin_outgoing_msg(ProfPrivateWin *privwin, const char *const message) { assert(privwin != NULL); - win_print_outgoing((ProfWin*)privwin, '-', id, replace_id ,"%s", message); + win_print_outgoing((ProfWin*)privwin, '-', NULL, NULL ,"%s", message); } void diff --git a/src/ui/ui.h b/src/ui/ui.h index addb50b2..77bdc1d5 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -198,7 +198,7 @@ void mucwin_unset_message_char(ProfMucWin *mucwin); // MUC private chat window void privwin_incoming_msg(ProfPrivateWin *privatewin, ProfMessage *message); -void privwin_outgoing_msg(ProfPrivateWin *privwin, const char *const id, const char *const replace_id, const char *const message); +void privwin_outgoing_msg(ProfPrivateWin *privwin, const char *const message); void privwin_message_occupant_offline(ProfPrivateWin *privwin); void privwin_message_left_room(ProfPrivateWin *privwin);