die on disconnect
This commit is contained in:
parent
e88a26ceae
commit
43d31d6b79
13
source/bot.h
13
source/bot.h
@ -189,6 +189,19 @@ void event_connect(irc_session_t * session,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static
|
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,
|
void event_privmsg(irc_session_t * session,
|
||||||
const char * event,
|
const char * event,
|
||||||
const char * origin,
|
const char * origin,
|
||||||
|
Loading…
Reference in New Issue
Block a user