From a54566df2e37cc5fac70d8bbd5df72911a5c52e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 6 May 2014 21:50:08 +0200 Subject: [PATCH] xfer: fix problem with option xfer.file.auto_accept_nicks when the server name contains dots --- ChangeLog.asciidoc | 2 ++ src/plugins/xfer/xfer.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 9440d4e68..4236df06e 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -139,6 +139,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * scripts: fix crash when a signal is received with type "int" and NULL pointer in signal_data * trigger: add trigger plugin: new command /trigger and file trigger.conf +* xfer: fix problem with option xfer.file.auto_accept_nicks when the server + name contains dots * xfer: fix freeze/problems when sending empty files with DCC (closes #53) * xfer: fix connection to remote host in DCC receive on Mac OS X (closes #25) * xfer: remove bind on xfer.network.own_ip (closes #5) diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c index 4d8ec2615..0839eafd9 100644 --- a/src/plugins/xfer/xfer.c +++ b/src/plugins/xfer/xfer.c @@ -527,7 +527,7 @@ xfer_nick_auto_accepted (const char *server, const char *nick) { for (i = 0; i < num_nicks; i++) { - pos = strchr (nicks[i], '.'); + pos = strrchr (nicks[i], '.'); if (pos) { if ((weechat_strncasecmp (server, nicks[i], pos - nicks[i]) == 0)