aboutsummaryrefslogtreecommitdiff
path: root/xC.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-04 22:45:04 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-04 22:48:54 +0100
commit60d52ad4795c00fa7da0a652ceb4ddc08d557f10 (patch)
tree8fde4dba53d8c4d73d3c2c4ee8daf2970cfb8456 /xC.c
parentb358f53ec357892a1432ac6a5c5335524175e1bc (diff)
downloadxK-60d52ad4795c00fa7da0a652ceb4ddc08d557f10.tar.gz
xK-60d52ad4795c00fa7da0a652ceb4ddc08d557f10.tar.xz
xK-60d52ad4795c00fa7da0a652ceb4ddc08d557f10.zip
xC, xD: add basic WALLOPS support
Diffstat (limited to 'xC.c')
-rw-r--r--xC.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xC.c b/xC.c
index a5a8070..909675d 100644
--- a/xC.c
+++ b/xC.c
@@ -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