summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.hpp50
1 files changed, 49 insertions, 1 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index a058b19..7380a8d 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -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