deinit function closes the rpxd connection
authorChristian Thaeter <ct@pipapo.org>
Sun, 4 Nov 2007 01:07:50 +0000 (02:07 +0100)
committerChristian Thaeter <ct@pipapo.org>
Sun, 4 Nov 2007 01:07:50 +0000 (02:07 +0100)
contrib/irc/xchat/rx.c

index 9496217..fe46207 100644 (file)
@@ -332,3 +332,14 @@ xchat_plugin_init(xchat_plugin *plugin_handle,
 
   return 1;
 }
 
   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;
+}