fix the server host msg for the irssi client now the login msg is clean

This commit is contained in:
mochaoui
2024-04-30 20:26:31 +01:00
parent e3f9610ec7
commit 17288d3fe3

View File

@@ -978,11 +978,8 @@ void Server::handleClientData(int fd)
iss >> channelName >> mode >> nick; iss >> channelName >> mode >> nick;
if (channelName[0] != '#') if (channelName[0] != '#')
{ {
std::string errorMessage = ":server.host NOTICE " + nick + " :Error: Channel start with #\r\n";
send(fd, errorMessage.c_str(), errorMessage.length(), 0);
client.clearCommand(); client.clearCommand();
return; return;
} }
channelName = channelName.substr(1); channelName = channelName.substr(1);
channelName = trim(channelName); channelName = trim(channelName);