mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Properly unload the original script when using /script load to reload it.
bug #525, patch by Lukas Mai. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4991 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4534ef242d
commit
2129c4b229
@ -266,7 +266,7 @@ static PERL_SCRIPT_REC *script_load(char *name, const char *path,
|
||||
/* if there's a script with a same name, destroy it */
|
||||
script = perl_script_find(name);
|
||||
if (script != NULL)
|
||||
perl_script_destroy(script);
|
||||
perl_script_unload(script);
|
||||
|
||||
script = g_new0(PERL_SCRIPT_REC, 1);
|
||||
script->name = name;
|
||||
|
Loading…
Reference in New Issue
Block a user