From 97b08e336ec3f7b8779984459a06671fe97edf19 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 Conflicts: irc.h --- host.c | 1 + irc.c | 5 +++++ irc.h | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 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 -- 2.39.2