Commit 274859c0 authored by louiz’'s avatar louiz’

Handle most generic error IRC messages

parent d46e7ee8
......@@ -270,7 +270,6 @@ static const std::unordered_map<std::string, irc_callback_t> irc_callbacks = {
{"366", &IrcClient::on_channel_completely_joined},
{"432", &IrcClient::on_erroneous_nickname},
{"433", &IrcClient::on_nickname_conflict},
{"461", &IrcClient::on_generic_error},
{"001", &IrcClient::on_welcome_message},
{"PART", &IrcClient::on_part},
{"ERROR", &IrcClient::on_error},
......@@ -279,6 +278,55 @@ static const std::unordered_map<std::string, irc_callback_t> irc_callbacks = {
{"MODE", &IrcClient::on_mode},
{"PING", &IrcClient::send_pong_command},
{"KICK", &IrcClient::on_kick},
{"401", &IrcClient::on_generic_error},
{"402", &IrcClient::on_generic_error},
{"403", &IrcClient::on_generic_error},
{"404", &IrcClient::on_generic_error},
{"405", &IrcClient::on_generic_error},
{"406", &IrcClient::on_generic_error},
{"407", &IrcClient::on_generic_error},
{"408", &IrcClient::on_generic_error},
{"409", &IrcClient::on_generic_error},
{"410", &IrcClient::on_generic_error},
{"411", &IrcClient::on_generic_error},
{"412", &IrcClient::on_generic_error},
{"414", &IrcClient::on_generic_error},
{"421", &IrcClient::on_generic_error},
{"422", &IrcClient::on_generic_error},
{"423", &IrcClient::on_generic_error},
{"424", &IrcClient::on_generic_error},
{"431", &IrcClient::on_generic_error},
{"436", &IrcClient::on_generic_error},
{"441", &IrcClient::on_generic_error},
{"442", &IrcClient::on_generic_error},
{"443", &IrcClient::on_generic_error},
{"444", &IrcClient::on_generic_error},
{"446", &IrcClient::on_generic_error},
{"451", &IrcClient::on_generic_error},
{"461", &IrcClient::on_generic_error},
{"462", &IrcClient::on_generic_error},
{"463", &IrcClient::on_generic_error},
{"464", &IrcClient::on_generic_error},
{"465", &IrcClient::on_generic_error},
{"467", &IrcClient::on_generic_error},
{"470", &IrcClient::on_generic_error},
{"471", &IrcClient::on_generic_error},
{"472", &IrcClient::on_generic_error},
{"473", &IrcClient::on_generic_error},
{"474", &IrcClient::on_generic_error},
{"475", &IrcClient::on_generic_error},
{"476", &IrcClient::on_generic_error},
{"477", &IrcClient::on_generic_error},
{"481", &IrcClient::on_generic_error},
{"482", &IrcClient::on_generic_error},
{"483", &IrcClient::on_generic_error},
{"484", &IrcClient::on_generic_error},
{"485", &IrcClient::on_generic_error},
{"487", &IrcClient::on_generic_error},
{"491", &IrcClient::on_generic_error},
{"501", &IrcClient::on_generic_error},
{"502", &IrcClient::on_generic_error},
};
#endif // IRC_CLIENT_INCLUDED
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment