summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-08-23 10:08:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-08-23 10:08:56 +0200
commitf68896fdd396d5ee0c97430757411a37f5c597d3 (patch)
tree79348969c6d73d0a4353c333b107063aa7934bd3 /src/plugins/relay
parent8319332a780457dd2a875bbafd8f83cc817d002e (diff)
downloadweechat-f68896fdd396d5ee0c97430757411a37f5c597d3.zip
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.
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/relay-raw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/relay/relay-raw.c b/src/plugins/relay/relay-raw.c
index 8280d7321..465cac7a6 100644
--- a/src/plugins/relay/relay-raw.c
+++ b/src/plugins/relay/relay-raw.c
@@ -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
{