From bb49ca3c10468cc27bbe2bd705284814ef029621 Mon Sep 17 00:00:00 2001 From: mochaoui Date: Mon, 22 Apr 2024 12:17:40 -0500 Subject: [PATCH] add a check for the last mode . hahahaah --- Server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server.cpp b/Server.cpp index cd7ac5b..bda90b9 100644 --- a/Server.cpp +++ b/Server.cpp @@ -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 {