Skip to content

Commit

Permalink
whatever i changed
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchy committed Apr 14, 2016
1 parent 035d439 commit edb90eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions exec.txt
Expand Up @@ -14,8 +14,7 @@
# reserved keys: alias, timeout, repeat, auto, empty, accounts, accounts_wildcard, cmds, dests, bucket_locks, cmd, saved, line, file, help, enabled
# reserved array keys: accounts, cmds, dests, bucket_locks, help

# you can't edit reserved arrays with macros
# TODO: NEED SOME WAY TO EDIT ARRAYS
# reserved array values are comma-delimited
# you can't delete reserved keys
# after adding/editing, the affected alias will be disabled (enable should be last macro)
# alias keys must not contain spaces, but can be anything
Expand Down
5 changes: 1 addition & 4 deletions irc_lib.php
Expand Up @@ -2368,8 +2368,7 @@ function process_alias_config_macro($macro,&$msg)
}
if (in_array($key,$reserved_arrays)==True)
{
$msg="unable to edit reserved array element \"$key\"";
return False;
$value=explode(",",$value);
}
$exec_list[$alias][$key]=$value;
$exec_list[$alias]["enabled"]=False;
Expand All @@ -2386,8 +2385,6 @@ function process_alias_config_macro($macro,&$msg)

#####################################################################################################

# TODO: USING MACROS ON A PRECEDING EXEC LINE ALIAS IS BORKED

function load_exec_line($line,$filename,$saved=True)
{
global $exec_errors;
Expand Down
2 changes: 2 additions & 0 deletions wikibak/alias_macros
Expand Up @@ -29,6 +29,8 @@ exec:enable ~butt2
operator can also use macros with internal ~alias-macro command

after alias/element is added/edited, the alias is disabled

reserved array values are comma-delimited

can also set custom alias parameters and access them from scripts (which was the real reason for the whole macro system in the first place)

Expand Down

0 comments on commit edb90eb

Please sign in to comment.