aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 69e15bd..7f3f6be 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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 },