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=97b08e336ec3f7b8779984459a06671fe97edf19;p=xonotic%2Fdarkplaces.git IRC: clean up on engine shutdown Conflicts: irc.h --- diff --git a/host.c b/host.c index 7e7bc56a..a7af4c0f 100644 --- a/host.c +++ b/host.c @@ -1440,6 +1440,7 @@ void Host_Shutdown(void) #endif 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 new file mode 100644 index 00000000..98f92622 --- /dev/null +++ b/irc.h @@ -0,0 +1,8 @@ +#ifndef IRC_H +#define IRC_H + +void IRC_Init(void); +void IRC_Frame(void); +void IRC_Shutdown(void); + +#endif