deinit function closes the rpxd connection
[rxpd] / contrib / irc / xchat / rx.c
index 9496217..fe46207 100644 (file)
@@ -332,3 +332,14 @@ xchat_plugin_init(xchat_plugin *plugin_handle,
 
   return 1;
 }
+
+int
+xchat_plugin_deinit (void)
+{
+  if (rx_private.fd != -1)
+    close (rx_private.fd);
+
+  xchat_printf (ph, "rxpd plugin unloaded\n");
+
+  return 1;
+}