summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-08 08:22:42 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-08 08:22:42 +0100
commit274859c096b25444d475d1319e9296a868ec258c (patch)
treeb631e485abdd0fc87b8b2fd03193e37df6b8fd79
parentd46e7ee8c90a800e6f3c2f1db949e88635983b6b (diff)
downloadbiboumi-274859c096b25444d475d1319e9296a868ec258c.tar.gz
biboumi-274859c096b25444d475d1319e9296a868ec258c.tar.bz2
biboumi-274859c096b25444d475d1319e9296a868ec258c.tar.xz
biboumi-274859c096b25444d475d1319e9296a868ec258c.zip
Handle most generic error IRC messages
-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