1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

IRCClient: Put the unhandled server messages nicely into the server log.

This commit is contained in:
Andreas Kling 2019-03-15 13:16:29 +01:00
parent 850c7504a2
commit f004db19d0
3 changed files with 15 additions and 10 deletions

View file

@ -235,7 +235,8 @@ void IRCClient::handle(const Message& msg, const String& verbatim)
if (msg.command == "PRIVMSG")
return handle_privmsg(msg);
m_log->add_message(0, "Server", verbatim);
if (msg.arguments.size() >= 2)
m_log->add_message(0, "Server", String::format("[%s] %s", msg.command.characters(), msg.arguments[1].characters()));
}
bool IRCClient::is_nick_prefix(char ch) const