add a check for the last mode . hahahaah

This commit is contained in:
mochaoui
2024-04-22 12:17:40 -05:00
parent e266a65a0a
commit bb49ca3c10

View File

@@ -689,7 +689,7 @@ void Server::handleClientData(int fd) {
int check = channels[channelName].getlimitechannel();
std::cout << "im now in the main function CCHEEEECK GETED FROM THE CLASSE : " << check << std::endl;
std::cout << "the LIMITATION INCRIMENTED : " << limitechannelforincriment << std::endl;
if (limitechannelforincriment < check)
if (limitechannelforincriment < check || limitechannel == 0)
createChannel(channelName, nick, fd);
else
{
@@ -707,7 +707,7 @@ void Server::handleClientData(int fd) {
int check = channels[channelName].getlimitechannel();
std::cout << "im now in the main function CCHEEEECK GETED FROM THE CLASSE : " << check << std::endl;
std::cout << "the LIMITATION INCRIMENTED : " << limitechannelforincriment << std::endl;
if (limitechannelforincriment < check)
if (limitechannelforincriment < check || limitechannel == 0)
createChannel(channelName, nick, fd);
else
{
@@ -720,7 +720,7 @@ void Server::handleClientData(int fd) {
int check = channels[channelName].getlimitechannel();
std::cout << "im now in the main function CCHEEEECK GETED FROM THE CLASSE : " << check << std::endl;
std::cout << "the LIMITATION INCRIMENTED : " << limitechannelforincriment << std::endl;
if (limitechannelforincriment < check)
if (limitechannelforincriment < check || limitechannel == 0)
createChannel(channelName, nick, fd);
else
{