1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

relay: display the arrow before client id and protocol in raw buffer

This prevents the arrow to be truncated if the option
weechat.look.prefix_align_max is set to a non-zero value.
This commit is contained in:
Sébastien Helleu
2015-08-23 10:08:56 +02:00
parent 8319332a78
commit f68896fdd3
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -31,6 +31,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* irc: display the arrow before server name in raw buffer
* irc: fix display of messages sent to server in raw buffer
* irc: fix display of invalid UTF-8 chars in raw buffer
* relay: display the arrow before client id and protocol in raw buffer
== Version 1.3 (2015-08-16)
+6 -6
View File
@@ -295,7 +295,11 @@ relay_raw_message_add (struct t_relay_client *client, int flags,
if (client)
{
snprintf (prefix, sizeof (prefix), "%s[%s%d%s] %s%s%s%s %s%s",
snprintf (prefix, sizeof (prefix), "%s%s %s[%s%d%s] %s%s%s%s",
(flags & RELAY_RAW_FLAG_SEND) ?
weechat_color ("chat_prefix_quit") :
weechat_color ("chat_prefix_join"),
prefix_arrow,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
client->id,
@@ -303,11 +307,7 @@ relay_raw_message_add (struct t_relay_client *client, int flags,
weechat_color ("chat_server"),
relay_protocol_string[client->protocol],
(client->protocol_args) ? "." : "",
(client->protocol_args) ? client->protocol_args : "",
(flags & RELAY_RAW_FLAG_SEND) ?
weechat_color ("chat_prefix_quit") :
weechat_color ("chat_prefix_join"),
prefix_arrow);
(client->protocol_args) ? client->protocol_args : "");
}
else
{