mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
bugfix for parameter handling...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1690 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fedc4dac4f
commit
6acc71e9a2
@ -72,7 +72,7 @@ static void cmd_script_load(const char *data)
|
|||||||
if (*path == '\0')
|
if (*path == '\0')
|
||||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
|
|
||||||
fname = perl_script_get_path(data);
|
fname = perl_script_get_path(path);
|
||||||
if (fname == NULL) {
|
if (fname == NULL) {
|
||||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||||
TXT_SCRIPT_NOT_FOUND, data);
|
TXT_SCRIPT_NOT_FOUND, data);
|
||||||
@ -100,7 +100,7 @@ static void cmd_script_unload(const char *data)
|
|||||||
if (*name == '\0')
|
if (*name == '\0')
|
||||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
|
|
||||||
script = perl_script_find(data);
|
script = perl_script_find(name);
|
||||||
if (script == NULL) {
|
if (script == NULL) {
|
||||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR,
|
||||||
TXT_SCRIPT_NOT_LOADED, data);
|
TXT_SCRIPT_NOT_LOADED, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user