There are always more changes than listed here, these are just the
highlights. The full CVS log is available at www.xchat.org/cvslog/
+------------------------------------------------------------------------------
+ 2.8.10 - dd/mm/yyyy
+------------------------------------------------------------------------------
+ - Perl (Lian Wan Situ)
+ * Added two new options to hook_print, run_after_event and filter. See
+ documentation for details.
+ * When building on Windows, generate the name of the DLL for the Perl
+ library based on information from the header files instead of hardcoding
+ the value.
+ * Fixed a bug in the reinit handling code. The bug prevented the plugin from
+ cleaning up properly. Which includes unloading scripts and removing
+ their GUI entries.
+
------------------------------------------------------------------------------
2.8.8 - 30/May/2010
------------------------------------------------------------------------------
/* Reinit safeguard */
static int initialized = 0;
-static int reinit_tried = 0;
int
xchat_plugin_init (xchat_plugin * plugin_handle, char **plugin_name,
char **plugin_desc, char **plugin_version, char *arg)
{
- ph = plugin_handle;
-
if (initialized != 0) {
- xchat_print (ph, "Perl interface already loaded\n");
- reinit_tried++;
+ xchat_print (plugin_handle, "Perl interface already loaded\n");
return 0;
}
+
+ ph = plugin_handle;
initialized = 1;
*plugin_name = "Perl";
int
xchat_plugin_deinit (xchat_plugin * plugin_handle)
{
- if (reinit_tried) {
- reinit_tried--;
- return 1;
- }
-
perl_end ();
+ initialized = 0;
xchat_print (plugin_handle, "Perl interface unloaded\n");
return 1;