Remove connection prefixes
This commit is contained in:
parent
25345574e2
commit
cb7a0a35d8
|
@ -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) {
|
||||
|
|
Reference in New Issue