mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
xfer: fix problem with option xfer.file.auto_accept_nicks when the server name contains dots
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user