From 515be07b415fba5c00ae9f86776b98869589aa46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Wed, 31 Mar 2010 03:19:51 +0300 Subject: [PATCH] IRC: clean up on engine shutdown --- host.c | 1 + irc.c | 5 +++++ irc.h | 1 + 3 files changed, 7 insertions(+) diff --git a/host.c b/host.c index 605852b6..bb9bf1c4 100644 --- a/host.c +++ b/host.c @@ -1280,6 +1280,7 @@ void Host_Shutdown(void) CDAudio_Shutdown (); S_Terminate (); Curl_Shutdown (); + IRC_Shutdown (); NetConn_Shutdown (); //PR_Shutdown (); diff --git a/irc.c b/irc.c index e9050574..088f7ffd 100644 --- a/irc.c +++ b/irc.c @@ -359,3 +359,8 @@ void IRC_Init(void) Cmd_AddCommand("ircdisconnect", IRC_Disconnect_f, "disconnect from an IRC server"); Cmd_AddCommand("irc", IRC_IRC_f, "send raw messages to a connected IRC server"); } + +void IRC_Shutdown(void) +{ + IRC_Disconnect(); +} diff --git a/irc.h b/irc.h index e49e3f25..98f92622 100644 --- a/irc.h +++ b/irc.h @@ -3,5 +3,6 @@ void IRC_Init(void); void IRC_Frame(void); +void IRC_Shutdown(void); #endif -- 2.39.2