Skip to content

Commit

Permalink
Unable verbose log and fix a bug in NICK command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ria9993 committed Apr 13, 2024
1 parent 5ff3c3a commit c841fb6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
1 change: 0 additions & 1 deletion Source/Core/SharedPtr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ class SharedPtr

if (mControlBlock->WeakRefCount == 0)
{
CoreLog("SharedPtr Reset(): Delete ControlBlock" + std::string(typeid(T).name()));
delete mControlBlock;
}
}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/WeakPtr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class WeakPtr
{
if (mControlBlock->StrongRefCount == 0)
{
CoreLog("WeakPtr Reset(): Delete ControlBlock" + std::string(typeid(T).name()));
delete mControlBlock;
}
}
Expand Down
4 changes: 4 additions & 0 deletions Source/Server/ClientCommand/NICK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ EIrcErrorCode Server::executeClientCommand_NICK(SharedPtr<ClientControlBlock> cl
channel->Clients.erase(client->Nickname);
channel->Clients.insert(std::make_pair(client->Nickname, client));
}
else
{
client->Channels.erase(it);
}
}

// Send NICK message to all channels the client is in
Expand Down
1 change: 0 additions & 1 deletion Source/Server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ EIrcErrorCode Server::processClientMsg(SharedPtr<ClientControlBlock> client, Sha
// ! DEBUG
if (msgCommandToken != NULL && strcmp(msgCommandToken, "QUIT") == 0)
{
destroyResources();
return IRC_FAILED_UNREACHABLE_CODE;
}

Expand Down
13 changes: 0 additions & 13 deletions Source/Server/Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ namespace IRC
/** @class Server
* @internal
* @note See [ \ref irc_server_event_loop_process_flow ] before reading implementation details.
*
* @dot
* digraph ServerClientChannel {
* node [shape=record];
* Server [label="Server"];
* Client [label="ClientControlBlock"];
* Channel [label="ChannelControlBlock"];
* Server -> Client;
* Server -> Channel;
* Channel -> Client;
* Client -> Channel [label="WeakPtr"];
* }
* @enddot
*
*
* @page irc_server_event_loop_process_flow Server Event Loop Process Flow
Expand Down

0 comments on commit c841fb6

Please sign in to comment.