From cb7a0a35d8875da70d96569812a614bd3ed51798 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Mon, 21 Dec 2020 22:30:55 +0000 Subject: [PATCH] Remove connection prefixes --- src/filesystem.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/filesystem.c b/src/filesystem.c index a5eb411..d3570a0 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -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) {