summaryrefslogtreecommitdiff
path: root/src/plugins/relay/irc/relay-irc.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-07-27 17:54:08 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-27 17:54:08 +0200
commit782e01f17798478322f7634c43d35653e92c2b2a (patch)
tree9babde108b57ca7a5b1014e4b5e2f357805ab8a4 /src/plugins/relay/irc/relay-irc.c
parent32b8f345673f5eb736a27090e98de808f6e7fda2 (diff)
downloadweechat-782e01f17798478322f7634c43d35653e92c2b2a.zip
relay: add support of SSL (for irc and weechat protocols), new option relay.network.ssl_cert_key (task #12044)
Diffstat (limited to 'src/plugins/relay/irc/relay-irc.c')
-rw-r--r--src/plugins/relay/irc/relay-irc.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c
index 59641b1d4..0ea308269 100644
--- a/src/plugins/relay/irc/relay-irc.c
+++ b/src/plugins/relay/irc/relay-irc.c
@@ -221,9 +221,11 @@ relay_irc_signal_irc_in2_cb (void *data, const char *signal,
if (weechat_relay_plugin->debug >= 2)
{
- weechat_printf (NULL, "%s: irc_in2: client: %s, data: %s",
+ weechat_printf (NULL, "%s: irc_in2: client: %s%s%s, data: %s",
RELAY_PLUGIN_NAME,
- client->protocol_args,
+ RELAY_COLOR_CHAT_CLIENT,
+ client->desc,
+ RELAY_COLOR_CHAT,
ptr_msg);
}
@@ -344,9 +346,11 @@ relay_irc_signal_irc_outtags_cb (void *data, const char *signal,
if (weechat_relay_plugin->debug >= 2)
{
- weechat_printf (NULL, "%s: irc_out: client: %s, message: %s",
+ weechat_printf (NULL, "%s: irc_out: client: %s%s%s, message: %s",
RELAY_PLUGIN_NAME,
- client->protocol_args,
+ RELAY_COLOR_CHAT_CLIENT,
+ client->desc,
+ RELAY_COLOR_CHAT,
message);
}
@@ -757,8 +761,12 @@ relay_irc_recv_one_msg (struct t_relay_client *client, char *data)
/* display debug message */
if (weechat_relay_plugin->debug >= 2)
{
- weechat_printf (NULL, "%s: recv from client %d: \"%s\"",
- RELAY_PLUGIN_NAME, client->id, data);
+ weechat_printf (NULL, "%s: recv from client %s%s%s: \"%s\"",
+ RELAY_PLUGIN_NAME,
+ RELAY_COLOR_CHAT_CLIENT,
+ client->desc,
+ RELAY_COLOR_CHAT,
+ data);
}
/* display message in raw buffer */