degesch: display ERROR messages
So that the user knows he was killed.
This commit is contained in:
parent
ce83f8244c
commit
328bf9af1e
10
degesch.c
10
degesch.c
@ -5170,6 +5170,15 @@ irc_handle_cap (struct server *s, const struct irc_message *msg)
|
|||||||
str_vector_free (&v);
|
str_vector_free (&v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
static void
|
||||||
irc_handle_invite (struct server *s, const struct irc_message *msg)
|
irc_handle_invite (struct server *s, const struct irc_message *msg)
|
||||||
{
|
{
|
||||||
@ -5791,6 +5800,7 @@ g_irc_handlers[] =
|
|||||||
{
|
{
|
||||||
// This list needs to stay sorted
|
// This list needs to stay sorted
|
||||||
{ "CAP", irc_handle_cap },
|
{ "CAP", irc_handle_cap },
|
||||||
|
{ "ERROR", irc_handle_error },
|
||||||
{ "INVITE", irc_handle_invite },
|
{ "INVITE", irc_handle_invite },
|
||||||
{ "JOIN", irc_handle_join },
|
{ "JOIN", irc_handle_join },
|
||||||
{ "KICK", irc_handle_kick },
|
{ "KICK", irc_handle_kick },
|
||||||
|
Loading…
Reference in New Issue
Block a user