Handles the PING command.
std::string formatReply(const std::string &serverName, const std::string &clientNickname, const std::string &replyCodeAndText)
Formats an IRC reply message without extra parameters.
Represents an IRC client connected to the server.
virtual void sendMessage(const std::string &message) const
Sends a message to the client by appending it to the send buffer.
const std::string & getNickname() const
Gets the client's nickname.
Abstract base class (interface) for all IRC commands.
Server * _server
Pointer to the IRC server instance.
virtual void execute(Client *client, const std::vector< std::string > &args)
Executes the PING command.
virtual ~PingCommand()
Destroys the PingCommand object.
PingCommand(Server *server)
Constructs a PingCommand object.
Implements the core IRC server functionality as a Singleton.
const std::string & getServerName() const
Gets the server's name.