Code

screen_chat: add an option to set the message prefix
[ncmpc.git] / src / screen_chat.c
index 6daca65aecd25f31fc3788b887f08b04e39c9f8c..2b887bafbe3a6208cd2758e4521bd60fbe93eb89 100644 (file)
@@ -147,6 +147,12 @@ screen_chat_get_prefix(void)
        if (prefix)
                return prefix;
 
+       if (options.chat_prefix) {
+               /* Options are encoded in the "locale" charset */
+               prefix = locale_to_utf8(options.chat_prefix);
+               return prefix;
+       }
+
        prefix = g_strconcat("<", g_get_user_name(), "> ", NULL);
        return prefix;
 }