Remove connection prefixes

This commit is contained in:
Alex D. 2020-12-21 22:30:55 +00:00
parent 25345574e2
commit cb7a0a35d8
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 6 deletions

View File

@ -108,12 +108,7 @@ get_path(char* buf, size_t lim, Connection* conn, IRC_Message* msg, bool global,
if (buf == NULL || conn == NULL) return -1;
ssize_t res;
const char* save = buf;
if (conn->data.address == NULL || conn->data.service == NULL
|| (res = snprintf(buf, lim, "%s.%s", conn->data.address, conn->data.service)) == -1)
return -1;
clean_and_push(&lim, (size_t) res, &buf);
int ci = -1;
int ci = -1;
if (global) {
if ((res = snprintf(buf, lim, "global")) == -1) return -1;
} else if (msg != NULL && (ci = get_msgchannel(msg)) != -1 && msg->args[ci] != NULL) {