diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-12 23:21:11 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-12 23:21:11 +0200 |
commit | 328bf9af1e3067457edd16fab16109393a0760dc (patch) | |
tree | b936d4aec2848af9b6b0cb8c4133d22deb7c990a | |
parent | ce83f8244c6094e62d18946f80b4ad9f3ea93c02 (diff) | |
download | xK-328bf9af1e3067457edd16fab16109393a0760dc.tar.gz xK-328bf9af1e3067457edd16fab16109393a0760dc.tar.xz xK-328bf9af1e3067457edd16fab16109393a0760dc.zip |
degesch: display ERROR messages
So that the user knows he was killed.
-rw-r--r-- | degesch.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5171,6 +5171,15 @@ irc_handle_cap (struct server *s, const struct irc_message *msg) } static void +irc_handle_error (struct server *s, const struct irc_message *msg) +{ + if (msg->params.len < 1) + return; + + log_server_error (s, s->buffer, "#m", msg->params.vector[0]); +} + +static void irc_handle_invite (struct server *s, const struct irc_message *msg) { if (!msg->prefix || msg->params.len < 2) @@ -5791,6 +5800,7 @@ g_irc_handlers[] = { // This list needs to stay sorted { "CAP", irc_handle_cap }, + { "ERROR", irc_handle_error }, { "INVITE", irc_handle_invite }, { "JOIN", irc_handle_join }, { "KICK", irc_handle_kick }, |