From 089f297e945866cb611d943b9b86386bc3deef23 Mon Sep 17 00:00:00 2001 From: alexLinux Date: Thu, 25 Apr 2024 11:26:44 +0200 Subject: [PATCH] Bug invite msg --- src/commands/InviteCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/InviteCommand.cpp b/src/commands/InviteCommand.cpp index 90f2b90..ab0e10f 100644 --- a/src/commands/InviteCommand.cpp +++ b/src/commands/InviteCommand.cpp @@ -37,7 +37,7 @@ void InviteCommand::execute(int clientFd) { throw NoSuchNickException(this->_nickname); if (!me.isOnChannel(this->_channelName)) - throw NotOnChannelException(this->_channelName); + throw NoSuchChannelException(this->_channelName); Channel &channel = server.getChannelByName(this->_channelName);