mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Merge pull request #333 from dequis/recon-tag-fix
Fix /reconnect RECON-1 saying "Reconnection tag 1 not found"
This commit is contained in:
commit
7ab38f29ed
1 changed files with 2 additions and 2 deletions
|
|
@ -420,8 +420,8 @@ static void cmd_reconnect(const char *data, SERVER_REC *server)
|
||||||
cmd_param_error(CMDERR_NOT_CONNECTED);
|
cmd_param_error(CMDERR_NOT_CONNECTED);
|
||||||
rec = reconnects->data;
|
rec = reconnects->data;
|
||||||
} else {
|
} else {
|
||||||
if (g_ascii_strncasecmp(data, "RECON-", 6) == 0)
|
if (g_ascii_strncasecmp(tag, "RECON-", 6) == 0)
|
||||||
data += 6;
|
tag += 6;
|
||||||
|
|
||||||
tagnum = atoi(tag);
|
tagnum = atoi(tag);
|
||||||
rec = tagnum <= 0 ? NULL : reconnect_find_tag(tagnum);
|
rec = tagnum <= 0 ? NULL : reconnect_find_tag(tagnum);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue