diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-10-08 09:18:04 +0200 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-10-08 09:18:04 +0200 |
commit | 7ab38f29edb59941281723d7031d41d93fae06bd (patch) | |
tree | f3d0595074a56aaebcc9b79690299901cc782ba1 | |
parent | 79fa2fcb598ac4a9c6caa4d94162ec98f14dfee5 (diff) | |
parent | f540ec9de1bb35b226e3c97e763238072fe295dd (diff) | |
download | irssi-7ab38f29edb59941281723d7031d41d93fae06bd.zip |
Merge pull request #333 from dequis/recon-tag-fix
Fix /reconnect RECON-1 saying "Reconnection tag 1 not found"
-rw-r--r-- | src/core/servers-reconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c index ae97ecd2..f419035b 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -420,8 +420,8 @@ static void cmd_reconnect(const char *data, SERVER_REC *server) cmd_param_error(CMDERR_NOT_CONNECTED); rec = reconnects->data; } else { - if (g_ascii_strncasecmp(data, "RECON-", 6) == 0) - data += 6; + if (g_ascii_strncasecmp(tag, "RECON-", 6) == 0) + tag += 6; tagnum = atoi(tag); rec = tagnum <= 0 ? NULL : reconnect_find_tag(tagnum); |