forked from PsychoticNinja/irssi
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 */
|
/* if there's a script with a same name, destroy it */
|
||||||
script = perl_script_find(name);
|
script = perl_script_find(name);
|
||||||
if (script != NULL)
|
if (script != NULL)
|
||||||
perl_script_destroy(script);
|
perl_script_unload(script);
|
||||||
|
|
||||||
script = g_new0(PERL_SCRIPT_REC, 1);
|
script = g_new0(PERL_SCRIPT_REC, 1);
|
||||||
script->name = name;
|
script->name = name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user