1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 23:56:38 +02:00

Fix numeric 470, is now:

:irc.test.net 470 nickname #originalchannel #redirect :[Link] Cannot join channel #originalchannel (you are banned) -- transferring you to #redirect

Previously this was completely incorrect:
:irc.test.net 470 nickname [Link] Cannot join channel ..etc...
(yeah even lacking a colon)
This commit is contained in:
Bram Matthys
2019-11-27 11:38:48 +01:00
parent 332ca4898c
commit ae30978680
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -334,8 +334,9 @@ int link_doforward(Client *client, Channel *channel, char *linked, linkType type
}
sendto_one(client, NULL,
":%s %d %s [Link] Cannot join channel %s (%s) -- transferring you to %s",
me.name, ERR_LINKCHANNEL, client->name, channel->chname, desc, linked);
":%s %d %s %s %s :[Link] Cannot join channel %s (%s) -- transferring you to %s",
me.name, ERR_LINKCHANNEL, client->name, channel->chname, linked,
channel->chname, desc, linked);
parv[0] = client->name;
parv[1] = linked;
parv[2] = NULL;
+1 -1
View File
@@ -514,7 +514,7 @@ static char *replies[] = {
/* 467 ERR_KEYSET */ "%s :Channel key already set",
/* 468 ERR_ONLYSERVERSCANCHANGE */ "%s :Only servers can change that mode",
/* 469 ERR_LINKSET */ "%s :Channel link already set",
/* 470 ERR_LINKCHANNEL */ "[Link] %s has become full, so you are automatically being transferred to the linked channel %s",
/* 470 ERR_LINKCHANNEL */ "%s %s :[Link] %s has become full, so you are automatically being transferred to the linked channel %s",
/* 471 ERR_CHANNELISFULL */ "%s :Cannot join channel (+l)",
/* 472 ERR_UNKNOWNMODE */ "%c :is unknown mode char to me",
/* 473 ERR_INVITEONLYCHAN */ "%s :Cannot join channel (+i)",