From 43d31d6b79bd31ddadd6d2e1409fbcd60fd0b8b8 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 29 Dec 2023 15:25:48 +0100 Subject: [PATCH] die on disconnect --- source/bot.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/bot.h b/source/bot.h index ffcce9e..3b32323 100644 --- a/source/bot.h +++ b/source/bot.h @@ -189,6 +189,19 @@ void event_connect(irc_session_t * session, } static +void event_disconnect(irc_session_t * session, + const char * event, + const char * origin, + const char ** params, + unsigned int count) { + (void)event; + (void)origin; + (void)params; + (void)count; + raise(SIGSEGV); +} + +static void event_privmsg(irc_session_t * session, const char * event, const char * origin,