From 92709352fe4e842942533aaf5605af82323aa27b Mon Sep 17 00:00:00 2001 From: jdomingu98 Date: Sun, 28 Apr 2024 17:34:26 +0200 Subject: [PATCH] fix(privmsg): send NoSuchChannel when found --- src/commands/PrivateMessageCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/PrivateMessageCommand.cpp b/src/commands/PrivateMessageCommand.cpp index f5158db..640b1af 100644 --- a/src/commands/PrivateMessageCommand.cpp +++ b/src/commands/PrivateMessageCommand.cpp @@ -36,6 +36,7 @@ void PrivateMessageCommand::execute(int clientFd) { } } catch (const NoSuchChannelException &e) { Logger::debug("Channel " + this->_receivers[i] + " does not exist."); + server.sendExceptionMessage(clientFd, e); } catch (const NoSuchNickException &e) { server.sendExceptionMessage(clientFd, e); }