mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
/SCRIPT LOAD modifies the script name so that all non-alphanumeric
characters are translated to '_' char .. now this behaviour is done also when /SCRIPT UNLOAD is done, so people don't get confused why their "test-1" script can't be unloaded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2145 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ed4d24b282
commit
ba445fe37e
3 changed files with 17 additions and 6 deletions
|
|
@ -104,10 +104,11 @@ static void cmd_script_unload(const char *data)
|
|||
if (*name == '\0')
|
||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
script_fix_name(name);
|
||||
script = perl_script_find(name);
|
||||
if (script == NULL) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||
TXT_SCRIPT_NOT_LOADED, data);
|
||||
TXT_SCRIPT_NOT_LOADED, name);
|
||||
} else {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||
TXT_SCRIPT_UNLOADED, script->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue