xC, xD: add basic WALLOPS support

This commit is contained in:
2022-02-04 22:45:04 +01:00
parent b358f53ec3
commit 60d52ad479
3 changed files with 42 additions and 0 deletions

11
xC.c
View File

@@ -7488,6 +7488,16 @@ irc_handle_topic (struct server *s, const struct irc_message *msg)
}
}
static void
irc_handle_wallops (struct server *s, const struct irc_message *msg)
{
if (!msg->prefix || msg->params.len < 1)
return;
const char *message = msg->params.vector[0];
log_server (s, s->buffer, 0, "<#n> #m", msg->prefix, message);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static struct irc_handler g_irc_handlers[] =
@@ -7511,6 +7521,7 @@ static struct irc_handler g_irc_handlers[] =
{ "QUIT", irc_handle_quit },
{ "TAGMSG", irc_handle_tagmsg },
{ "TOPIC", irc_handle_topic },
{ "WALLOPS", irc_handle_wallops },
};
static bool