From: Jānis Rūcis Date: Wed, 31 Mar 2010 00:19:51 +0000 (+0300) Subject: IRC: clean up on engine shutdown X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=515be07b415fba5c00ae9f86776b98869589aa46;p=xonotic%2Fdarkplaces.git IRC: clean up on engine shutdown --- 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