Exemplo n.º 1
0
function buckets_flush($items)
{
    global $buckets;
    $connected = $buckets[BUCKET_CONNECTION_ESTABLISHED];
    $buckets = array();
    initialize_buckets();
    $buckets[BUCKET_CONNECTION_ESTABLISHED] = $connected;
    privmsg($items["destination"], $items["nick"], "buckets flushed");
}
Exemplo n.º 2
0
$admin_data = "";
$admin_is_sock = "";
$irc_pause = False;
$throttle_time = False;
# set when "throttled" is detected in a message from the server
$rawmsg_times = array();
$operator_aliases = array();
# aliases that may only be executed by the bot operator account
$admin_aliases = array(ALIAS_ADMIN_QUIT, ALIAS_ADMIN_NICK, ALIAS_ADMIN_RESTART, ALIAS_ADMIN_PS, ALIAS_ADMIN_KILL, ALIAS_ADMIN_KILLALL, ALIAS_ADMIN_REHASH, ALIAS_ADMIN_DEST_OVERRIDE, ALIAS_ADMIN_DEST_CLEAR, ALIAS_ADMIN_BUCKETS_DUMP, ALIAS_ADMIN_BUCKETS_SAVE, ALIAS_ADMIN_BUCKETS_LOAD, ALIAS_ADMIN_BUCKETS_FLUSH, ALIAS_ADMIN_BUCKETS_LIST, ALIAS_ADMIN_IGNORE, ALIAS_ADMIN_UNIGNORE, ALIAS_ADMIN_LIST_IGNORE, ALIAS_ADMIN_EXEC_CONFLICTS, ALIAS_ADMIN_EXEC_LIST, ALIAS_ADMIN_EXEC_TIMERS, ALIAS_ADMIN_EXEC_ERRORS);
$reserved_aliases = array(ALIAS_ALL, ALIAS_INIT, ALIAS_STARTUP, ALIAS_QUIT);
$silent_timeout_commands = array(CMD_INTERNAL, CMD_BUCKET_GET, CMD_BUCKET_SET, CMD_BUCKET_UNSET, CMD_BUCKET_APPEND, CMD_BUCKET_LIST, CMD_PAUSE, CMD_UNPAUSE);
$valid_data_cmd = get_valid_data_cmd();
$init = array();
$startup = array();
$help = array();
initialize_buckets();
$exec_errors = array();
# stores exec load errors
$exec_list = exec_load();
if ($exec_list === False) {
    term_echo("error loading exec file");
    return;
}
$ignore_list = array();
if (file_exists(IGNORE_FILE) == True) {
    $ignore_data = file_get_contents(IGNORE_FILE);
    if ($ignore_data !== False) {
        $ignore_list = explode("\n", $ignore_data);
    }
}
delete_empty_elements($ignore_list);