about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-13 09:25:11 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-14 10:17:07 +0100
commit50271493b70f3b9362af1cb17a6e70dceda47f4d (patch)
treebf038715e0c3f0ab16d0211c3cf72e8ff2b19304 /src
parentfb68d4426429411734ddc2f15630220051b4e9a4 (diff)
downloadprofani-tty-50271493b70f3b9362af1cb17a6e70dceda47f4d.tar.gz
xep-0308: remove replace_id from privwin signature
No `/correct` allowed in privwins
Diffstat (limited to 'src')
-rw-r--r--src/event/client_events.c2
-rw-r--r--src/ui/privwin.c4
-rw-r--r--src/ui/ui.h2
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);