mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Prevent double calls of perl_script_unload
This commit is contained in:
parent
6684e5cc41
commit
6012ec9e56
5 changed files with 41 additions and 5 deletions
|
|
@ -106,7 +106,7 @@ static void cmd_script_unload(const char *data)
|
|||
|
||||
script_fix_name(name);
|
||||
script = perl_script_find(name);
|
||||
if (script == NULL) {
|
||||
if (script == NULL || script->unloaded) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||
TXT_SCRIPT_NOT_LOADED, name);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue