about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-13 11:09:55 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-14 10:17:07 +0100
commit2900bf4aefceb9c62c6de02106815632ac5fc043 (patch)
tree0d344cf89dbd7c7e27e9a97610295e220e93aeb6
parentc614cc288acdef6423d307c9bb1476e00292f4b2 (diff)
downloadprofani-tty-2900bf4aefceb9c62c6de02106815632ac5fc043.tar.gz
Rename `win_println_them_message()` -> `win_println_incoming_muc_msg()`
In aa3693daa211b36c78d136d5a1ee9f3258e21352 I renamed
`win_println_me_message()` -> `win_print_outgoing_muc_msg()`.

Now: `win_println_them_message()` -> `win_println_incoming_muc_msg()`
to be more consistent and descriptive.
-rw-r--r--src/ui/mucwin.c2
-rw-r--r--src/ui/window.c2
-rw-r--r--src/ui/window.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index dddcb825..28c3beea 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -566,7 +566,7 @@ mucwin_incoming_msg(ProfMucWin *mucwin, ProfMessage *message, GSList *mentions,
         win_print_them(window, THEME_ROOMTRIGGER, ch, flags, message->jid->resourcepart);
         _mucwin_print_triggers(window, message->plain, triggers);
     } else {
-        win_println_them_message(window, ch, flags, message->jid->resourcepart, message->id, message->replace_id, "%s", message->plain);
+        win_println_incoming_muc_msg(window, ch, flags, message->jid->resourcepart, message->id, message->replace_id, "%s", message->plain);
     }
 }
 
diff --git a/src/ui/window.c b/src/ui/window.c
index bb02dcdf..262c9e7e 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1145,7 +1145,7 @@ win_print_them(ProfWin *window, theme_item_t theme_item, char ch, int flags, con
 }
 
 void
-win_println_them_message(ProfWin *window, char ch, int flags, const char *const them, const char *const id, const char *const replace_id, const char *const message, ...)
+win_println_incoming_muc_msg(ProfWin *window, char ch, int flags, const char *const them, const char *const id, const char *const replace_id, const char *const message, ...)
 {
     //TODO: we always use current timestamp here. instead of the message->timestamp one if available. i think somewhere else we check whether it exists first.
     GDateTime *timestamp = g_date_time_new_now_local();
diff --git a/src/ui/window.h b/src/ui/window.h
index 66c6e5ff..302306fd 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -62,7 +62,7 @@ void win_show_status_string(ProfWin *window, const char *const from,
     const char *const default_show);
 
 void win_print_them(ProfWin *window, theme_item_t theme_item, char ch, int flags, const char *const them);
-void win_println_them_message(ProfWin *window, char ch, int flags, const char *const them, const char *const id, const char *const replace_id, const char *const message, ...);
+void win_println_incoming_muc_msg(ProfWin *window, char ch, int flags, const char *const them, const char *const id, const char *const replace_id, const char *const message, ...);
 void win_print_outgoing_muc_msg(ProfWin *window, char ch, const char *const me, const char *const id, const char *const replace_id, const char *const message, ...);
 
 void win_print_outgoing(ProfWin *window, const char ch, const char *const id, const char *const replace_id, const char *const message, ...);