patch

./upgradedb.3.0a7-to-3.0a9.02/files/patch · 1009.8 KB

From the archive upgradedb.3.0a7-to-3.0a9.02.tar

Download the archive   « Back to the archive contents

diff -rwu src-3.0a7/+CORE ColdCore-3.0a9.02/src/+CORE
--- src-3.0a7/+CORE	Sat Aug  9 19:09:49 1997
+++ ColdCore-3.0a9.02/src/+CORE	Tue Aug 19 12:15:37 1997
@@ -1,15 +1,12 @@
 root
 sys
-foundation
-has_commands
-has_name
-described
-event_handler
-physical
-located
-thing
-command_cache
-user_interfaces
+mutex
+mutex_access
+mutex_mail
+mutex_vr
+mutex_building
+mutex_location
+dmi_data
 core
 libraries
 dictionary
@@ -25,27 +22,97 @@
 help_lib
 misc
 mail_root
-mail_list
-mail_ui
+mail_lib
+foundation
+has_commands
+command_cache
+network
+frob
+connection_interface
+has_name
+bug_handler
+described
+event_handler
+utilities
+lag_watcher
+heart
+scheduler
+file
+compiler
+evaluator
+bs_eval
+place_desc_evaluator
+realm_base_eval
+formatter
+plain_format
+wrapped_format
+flat_format
+ansi_format
+html_format
+pueblo_format
+uncompiler
+housekeeper
+word
+lovecraft_word
+password
+settings
+world
+motd
+cml_color
+physical
+located
+thing
+has_text
+note
+log
+http_log
+reaper_log
+login_log
+generic_map
+page
+page_home_index
+page_bin_index
+page_desktop_login
+page_file_index
+page_root_index
+page_login
+plain_page
+page_web_prefs
+mail_message
+itext
 location
 located_location
 body
+has_reactions
 robot
+mail_list
+user_interfaces
+mail_ui
 command_aliases
 bad_commands
 help_ui
 editor_reference
 channel_ui
 user_info
+menu
 user
 guest
 reaper
 no_one
 player
-storyteller
 builder
+storyteller
+dmi_data_ui
 programmer
 admin
+antisocial
+social
+www_preferences
+settings_ui
+mail_list_news
+mail_list_bugs
+mail_postmaster
+mail_admin
 on_location
 in_location
 lost_and_found
@@ -56,46 +123,6 @@
 body_cave
 void
 the_pit
-frob
-network
-connection_interface
-http_interface
-smtp_interface
-finger_interface
-login_interface
-connection
-login_connection
-http_connection
-outbound_connection
-smtp_connection
-finger_connection
-veil_connection
-smtp
-daemon
-http_daemon
-login_daemon
-veil_daemon
-smtp_daemon
-finger_daemon
-logic_frob
-xor
-and
-and_lock_frob
-lock_frob
-object_lock_frob
-inside_lock_frob
-indirect_lock_frob
-owner_lock_frob
-carry_lock_frob
-parent_lock_frob
-not
-not_lock_frob
-or
-or_lock_frob
-true
-true_lock_frob
-false
-false_lock_frob
 realm
 realm_of_creation
 thing_frob
@@ -103,35 +130,35 @@
 exit
 coord_exit
 exit_frob
-read_parser
-callback
-message_frob
-trie
-ctext_frob
-tag
-format
-generator
-climate_frob
-rect
-rtree
-mail_list_news
-mail_list_bugs
-has_text
-note
-log
-http_log
-reaper_log
-login_log
-generic_map
-map_of_taobh_thiar
-mail_message
-itext
+slate
+nothing
+weather_system
+climate
+climate_taobh_thiar
+weather_attributes
+weather
+weather_1
+weather_2
+weather_3
+weather_4
+weather_5
+weather_6
+smtp_interface
+help_node
 db
 registry
+help_index
+help_index_driver
+help_index_core
+help_index_cmds
+help_index_subsystem
+help_index_function
+help_index_objects
 mail_db
 place_db
 user_db
-help_node
+channel_db
+interface_registry
 help_coldcore
 help_help
 help_help_options
@@ -368,6 +395,8 @@
 help_func_type
 help_func_valid
 help_func_fromliteral
+help_func_frob_value
+help_func_frob_handler
 help_funcs_buf
 help_func_buf_replace
 help_func_buf_to_str
@@ -427,27 +456,8 @@
 help_coldc_native
 help_reference
 help_updates
-help_index
-help_index_driver
-help_index_core
-help_index_cmds
-help_index_subsystem
-help_index_function
-help_index_objects
+help_admin
 help_core
-help_sys_events
-help_obj_list
-help_list_element
-help_list_formatting
-help_list_maps
-help_list_sets
-help_list_other
-help_sys_editor
-help_node_editor_invoking
-help_node_editor_commands
-help_node_editor_programming
-help_sys_channels
-help_obj_trie
 help_cmds
 help_cmd_say
 help_cmd_emote
@@ -479,26 +489,169 @@
 help_cmd_new
 help_cmd_wear
 help_cmd_spawn
-help_cmd_build
-help_cmd_dig
-help_sys_message
-help_cmd_defmsg
-help_msg_coldc
-help_cmd_msg
 help_cmd_nh
 help_cmd_rename
 help_cmd_ant
 help_cmd_dnt
 help_cmd_remember
-help_sys_word
+help_mail
+help_mail_read
+help_mail_mail
+help_mail_subscribe
+help_mail_unsubscribe
+help_mail_mail_lists
+help_mail_send
+help_mail_next_new
+help_mail_rmmail
+help_mail_reply
+help_cmd_list
+help_cmd_show
+help_cmd_hlist
+help_cmd_hwrite
+help_cmd_add_parent
+help_cmd_boot
+help_cmd_rehash
+help_cmd_which
+help_cmd_dump
+help_cmd_move
+help_cmd_chparent
+help_cmd_addparent
+help_cmd_addvariable
+help_cmd_delparent
+help_cmd_delvariable
+help_cmd_ancestors
+help_cmd_delmethod
+help_cmd_id
+help_cmd_join
+help_cmd_teleport
+help_cmd_attach
+help_cmd_bugs
+help_cmd_children
+help_cmd_destroy
+help_cmd_parents
+help_cmd_realms
+help_cmd_report
+help_cmd_build
+help_cmd_dig
+help_cmd_discard
+help_cmd_help
+help_cmd_age
+help_cmd_audit
+help_cmd_commands
+help_cmd_context
+help_cmd_date
+help_cmd_examine
+help_cmd_finger
+help_cmd_news
+help_cmd_password
+help_cmd_quit
+help_obj
+help_cml_colors
+help_obj_trie
+help_obj_list
+help_list_element
+help_list_formatting
+help_list_maps
+help_list_sets
+help_list_other
+help_obj_has_text
+help_obj_has_text_methods
+help_mutex
+help_heap
 help_weather_system
 help_sys_climate
 help_sys_weather
 help_sys_weather_attributes
-help_mutex
-help_heap
-channel_db
-mail_lib
+help_obj_math
+help_obj_integer
+help_obj_data_lib
+help_obj_object_lib
+help_obj_help_node
+help_node_names
+help_node_settings
+help_node_creation
+help_node_formatting
+help_formatting_general
+help_formatting_commands
+help_formatting_objects
+help_node_commands
+help_obj_code_lib
+help_sys
+help_sys_events
+help_sys_event_register
+help_sys_event_hook
+help_sys_event_send
+help_sys_event_recv
+help_sys_editor
+help_node_editor_invoking
+help_node_editor_commands
+help_node_editor_programming
+help_sys_channels
+help_sys_message
+help_cmd_defmsg
+help_msg_coldc
+help_cmd_msg
+help_msg_prop
+help_sys_word
+help_ranges
+help_sys_bad_commands
+gender
+gender_first_person
+gender_female
+gender_first_person_plural
+gender_male
+gender_plural
+gender_neuter
+finger_interface
+login_interface
+http_interface
+logic_frob
+xor
+and
+and_lock_frob
+lock_frob
+object_lock_frob
+inside_lock_frob
+indirect_lock_frob
+owner_lock_frob
+carry_lock_frob
+parent_lock_frob
+not
+not_lock_frob
+or
+or_lock_frob
+true
+true_lock_frob
+false
+false_lock_frob
+read_parser
+callback
+message_frob
+trie
+ctext_frob
+tag
+format
+generator
+climate_frob
+rect
+rtree
+propagator
+connection
+outbound_connection
+ident_connection
+inbound_connection
+http_connection
+smtp_connection
+login_connection
+finger_connection
+smtp
+daemon
+login_daemon
+smtp_daemon
+finger_daemon
+http_daemon
+dns
+world_time
 user_parsers
 null_parser
 command_aliases_parser
@@ -510,64 +663,20 @@
 wrap_filter
 lock_parser
 editor_session
-weather_system
-climate
-climate_taobh_thiar
-weather_attributes
-weather
-weather_1
-weather_2
-weather_3
-weather_4
-weather_5
-weather_6
+propagator_effects
+adapter
 symbol
 math
 english_lib
 time
-world_time
 graph
 heap
 place_lib
 data_lib
-utilities
-lag_watcher
-heart
-scheduler
-file
-compiler
-evaluator
-bs_eval
-place_desc_evaluator
-realm_base_eval
-formatter
-text_format
-wrapped_text_format
-plaintext_format
-html_format
-uncompiler
-housekeeper
-word
-lovecraft_word
-password
-settings
-world
-motd
-antisocial
-social
-settings_ui
-slate
-nothing
-gender
-gender_first_person
-gender_female
-gender_first_person_plural
-gender_male
-gender_plural
-gender_neuter
-mutex
-mutex_access
-mutex_mail
-mutex_vr
-mutex_building
-mutex_location
+filtered_frob
+cml_lib
+http_lib
+converters
+security_lib
+directories
+dir_desktop
diff -rwu src-3.0a7/admin.cdc ColdCore-3.0a9.02/src/admin.cdc
--- src-3.0a7/admin.cdc	Sat Aug  9 19:09:31 1997
+++ ColdCore-3.0a9.02/src/admin.cdc	Tue Aug 19 12:18:13 1997
@@ -1,6 +1,7 @@
 
 new object $admin: $programmer;
 
+var $admin configured_core = #[];
 var $admin shutdown_started = 0;
 var $channel_ui active_channels = #[];
 var $channel_ui channel_dict = #[];
@@ -23,9 +24,11 @@
   ["@core",\
     [["@core", "*", "@core <list object>", 'core_cmd, #[[1, ['list, ['object, []]]]]]]],\
   ["@rehash-all",\
-    [["@rehash-all", "*", "@rehash-all <any:-p?urge>", 'rehash_all_cmd, #[[1, ['any_opt, [["p?urge"]]]]]]]],\
+    [["@rehash-all", "*", "@rehash-all <any:-p?urge>", 'rehash_all_cmd, #[[1, ['any_opt, ["p?urge"]]]]]]],\
   ["@reap",\
-    [["@reap", "*", "@reap <any>", 'reap_cmd, #[[1, ['any, []]]]]]]];
+    [["@reap", "*", "@reap <any>", 'reap_cmd, #[[1, ['any, []]]]]]],\
+  ["@quota",\
+    [["@quota", "* to *", "@quota <object> to <any:+e?xempt>", 'quota_cmd, #[[1, ['object, []]], [3, ['any_opt, ["e?xempt"]]]]]]]];
 var $has_name name = ['prop, "Generic Admin", "Generic Admin"];
 var $located location = $body_cave;
 var $located obvious = 1;
@@ -45,14 +48,12 @@
 var $root inited = 1;
 var $root managed = [$admin];
 var $root manager = $admin;
-var $root owned = [$admin];
 var $root quota = 75000;
 var $root settings = #[["home", $body_cave]];
 var $thing gender = $gender_neuter;
 var $user connected_at = 0;
 var $user connections = [];
-var $user context = #[['last, $body_cave]];
-var $user formatter = $mail_list;
+var $user formatter = $plain_format;
 var $user last_command_at = 0;
 var $user modes = #[];
 var $user parsers = [$command_parser];
@@ -79,7 +80,7 @@
         if (!email)
             return (who.namef('ref)) + " does not have an email address!";
         catch any {
-            $smtp.sendmail(email, ("[" + ($motd.server_name())) + "] password change.", ((("The password for the user " + (who.name())) + " on ") + ($motd.server_name())) + " has been set as:", "", "    " + pwd, "", "This is an automatic message sent to the supplied address.  If this message is in error simply discard it.", "", "If no connections are made to this user within a week it will be purged.");
+            $smtp.sendmail('admin, email, ("[" + ($motd.server_name())) + "] password change.", ((("The password for the user " + (who.name())) + " on ") + ($motd.server_name())) + " has been set as:", "", "    " + pwd, "", "This is an automatic message sent to the supplied address.  If this message is in error simply discard it.", "", "If no connections are made to this user within a week it will be purged.");
         } with {
             .tell_traceback(traceback());
             return "** Unable to send mail message, no changes made **";
@@ -143,6 +144,163 @@
     }
 };
 
+public method .configure_core() {
+    var list, l, x, t, err;
+    
+    // get the juice
+    $sys.add_to_system(this());
+    
+    // expand on this as we go
+    .tell(["*" * 78, strfmt("%78{*}c", " Welcome to ColdCore "), "*" * 78]);
+    .tell(("This is an interactive configuration system which any admin who connects (until it is completed) is sent through.  You must complete this configuration before you can do anything else.  You can skip a specific question at any time by typing '@skip'.  Suggested default values will be enclosed in square brackets.  Pressing enter without any value will use the default value.".wrap_lines(78)).mmap('center, 78));
+    .tell("*" * 78);
+    
+    // first question please
+    if (!($admin.configured_core('new_user_class))) {
+        .tell("What class should new users be created as?  Available classes:");
+        list = filter x in ($user.descendants()) where ('command_cache in (x.flags()));
+        t = $sys.get_new_user_class();
+        list = map x in (list) to ((list == t) ? (x + " (current class)") : x);
+        .tell(list.prefix("    "));
+        while (!l) {
+            refresh();
+            l = .prompt("New User Class [$user] ");
+            if (l == "@skip") {
+                .tell("Skipping..");
+                break;
+            }
+            if (l) {
+                catch any {
+                    l = $object_lib.to_dbref(l);
+                    if (!(l in list))
+                        .tell("Invalid selection, try again.");
+                } with {
+                    .tell(("Invalid selection '" + l) + "'");
+                    continue;
+                }
+            } else {
+                l = $user;
+            }
+            $sys.set_setting("new-user-class", $sys, l);
+            $admin.configured_core('new_user_class, 1);
+            .tell("New User Class set to: " + l);
+        }
+        .tell(["", "You can set this at any time, with the command:"]);
+        .tell("  @set $sys:new-user-class=" + l);
+    }
+    refresh();
+    
+    // server name/title
+    if (!($admin.configured_core('server_name))) {
+        .tell(["", "---"]);
+        l = (.prompt("What is your server name? [My Server] ")) || "My Server";
+        if (l == "@skip") {
+            .tell("Skipping..");
+        } else {
+            $motd.set_setting("server-name", $motd, l);
+            $admin.configured_core('server_name, 1);
+            .tell("Server name set to: " + l);
+        }
+        .tell(["", "You can set this at any time, with the command:"]);
+        .tell("  @set $motd:server-name=" + l);
+    }
+    refresh();
+    if (!($admin.configured_core('server_title))) {
+        .tell(["", "---"]);
+        t = $motd.server_title();
+        l = (.prompt(("What is your server title? [" + t) + "] ")) || t;
+        if (l == "@skip") {
+            .tell("Skipping..");
+        } else {
+            $motd.set_setting("server-title", $motd, l);
+            $admin.configured_core('server_title, 1);
+            .tell("Server title set to: " + l);
+        }
+        .tell(["", "You can set this at any time, with the command:"]);
+        .tell("  @set $motd:server-title=" + l);
+    }
+    refresh();
+    if (!($admin.configured_core('daemons))) {
+        .tell(["", "---"]);
+        while (1) {
+            refresh();
+            list = ($daemon.children()).setremove($login_daemon);
+            .tell("Which network daemons do you want to have automatically startup,");
+            .tell("Other than $login_daemon.  Available daemons:");
+            t = filter l in ($sys.get_startup_objects()) where (l.is($daemon));
+            for l in (list) {
+                if (l in t)
+                    .tell(strfmt("  %20s (auto starting)", l));
+                else
+                    .tell("  " + l);
+            }
+            l = .prompt(("Auto-Start: [" + (t.join(", "))) + "] ");
+            if (l == "@skip") {
+                .tell("Skipping..");
+                break;
+            } else if (!l) {
+                .tell("Using existing daemons: " + (t.join(", ")));
+                break;
+            } else {
+                err = 0;
+                for x in (l.explode_english_list()) {
+                    catch any {
+                        $sys.set_setting("startup-objects", $sys, "+" + x);
+                        .tell(("Added " + x) + " as a startup daemon.");
+                    } with {
+                        .tell(("Unable to add '" + x) + "' as a daemon:");
+                        .tell("=> " + ((traceback()[1])[2]));
+                        err++;
+                    }
+                }
+                if (!err) {
+                    $admin.configured_core('daemons, 1);
+                    break;
+                }
+                .tell("Errors occurred...");
+            }
+        }
+        .tell(["", "You can set this at any time, with the command:"]);
+        .tell("  @set $motd:startup-objects=OBJECTS...");
+    }
+    
+    // Other things to add: HTTP Virtual Hosting info,
+    // cleanup
+    list = $admin.list_method('login);
+    list = filter l in (list) where (!match_regexp(l, "\.configure_core\(\);"));
+    if (list)
+        $admin.add_method(list, 'login);
+    else
+        $admin.del_method('login);
+    $admin.del_var('configured_core);
+    $admin.add_var('configured_core);
+    .tell(["", strfmt("%79{*}c", " Configuration Complete ")]);
+};
+
+public method .configured_core() {
+    arg item, @yes;
+    
+    if (!yes)
+        return (| configured_core[item] |) || 0;
+    configured_core = configured_core.add(item, 1);
+};
+
+public method .core_admin() {
+    var code, defs;
+    
+    catch any {
+        .add_var('configured_core);
+        configured_core = #[];
+        if ((| .find_method('login) |) == $admin)
+            code = .list_method('login);
+        else
+            code = (defs = []);
+        .add_method(code + [".configure_core();"], 'login);
+    } with {
+        $sys.log($parse_lib.traceback());
+    }
+};
+
 protected method .core_cmd() {
     arg cmdstr, cmd, objs;
     var o, obj;
@@ -213,7 +371,7 @@
     if (who.connected()) {
         out += ["  Connections:"];
         for tmp in (who.connections())
-            out += [(((("    " + tmp) + ": [") + ($time.format("%v/%T", tmp.active_since()))) + "] ") + (tmp.address())];
+            out += [(((("    " + tmp) + ": [") + ($time.format("%d-%b-%Y/%T", tmp.active_since()))) + "] ") + (tmp.address())];
     }
     tmp = who.quota_byte_usage();
     return (out += ["  Quota:", "    Total:     " + ((who.quota()).to_english()), "    Used:      " + (tmp.to_english()), "    Remaining: " + (((who.quota()) - tmp).to_english())]);
@@ -231,6 +389,13 @@
     $sys.new_admin();
 };
 
+public method .login() {
+    arg connection;
+    
+    pass(connection);
+
+};
+
 public method .logout() {
     arg @args;
     
@@ -284,7 +449,7 @@
         return (user.namef('ref)) + " does not have an email address!";
     new = $code_lib.random_password();
     catch any {
-        $smtp.sendmail(email, ("[" + ($motd.server_name())) + "] password change.", ((("The password for the user " + (user.name())) + " on ") + ($motd.server_name())) + " has been changed to:", "", "    " + new, "", "This is an automatic message sent to the supplied address.  If this message is in error simply discard it.");
+        $smtp.sendmail('admin, email, ("[" + ($motd.server_name())) + "] password change.", ((("The password for the user " + (user.name())) + " on ") + ($motd.server_name())) + " has been changed to:", "", "    " + new, "", "This is an automatic message sent to the supplied address.  If this message is in error simply discard it.", "", "This password was changed by " + (.name()));
     } with {
         .tell_traceback(traceback());
         return "** Unable to send mail message, password not changed **";
@@ -294,13 +459,33 @@
     .tell((("You reset " + (user.name())) + "'s password to: ") + new);
 };
 
+protected method .quota_cmd() {
+    arg cmd, cmdstr, object, prep, ops;
+    var object, value, exempt;
+    
+    (> .perms(caller(), 'command) <);
+    (> .check_mojo() <);
+    value = ops[1];
+    value = (value && (| toint(value[1]) |)) ? toint(value[1]) : (-1);
+    exempt = "e?xempt" in ((ops[2]).slice(1));
+    exempt = exempt ? (((ops[2])[exempt])[3]) : (-1);
+    if (value != (-1)) {
+        object.set_quota(value);
+        .tell((((object.name()) + " now has a quota of ") + (value.to_english())) + ".");
+    }
+    if (exempt != (-1)) {
+        object.set_quota_exempt(exempt);
+        .tell((((object.name()) + " is ") + (exempt ? "now" : "no longer")) + " quota exempt.");
+    }
+};
+
 protected method .reap_cmd() {
     arg cmdstr, cmd, args;
     var opts, thresh, i;
     
     (> .perms(caller(), 'command) <);
     (> .check_mojo() <);
-    [args, opts] = $parse_lib.getopt(args, [["t?ime", 1], ["m?ail", 0]]);
+    [args, opts] = $parse_lib.opt(args, "t?ime", "m?ail");
     args = args.join();
     if ((i = "t?ime" in (opts.slice(1)))) {
         catch any
@@ -318,11 +503,11 @@
 
 private method .reap_list() {
     arg thresh;
-    var t, reap, u, tl, m, v, last;
+    var t, reap, u, tl, m, v, n, last;
     
     t = time();
     reap = [];
-    .tell([("--- Reap Possibilities (Not connected for " + ($time.to_english(thresh))) + ")", strfmt("%28L %4l %4l %12l %l", "User", "MNGD", "WRTS", "Last On", "Age"), strfmt("%28L %4l %4l %12l %l", "----", "----", "----", "-------", "---")]);
+    .tell([("--- Reap Possibilities (Not connected for " + ($time.to_english(thresh))) + ")", strfmt("E %28L %3l %12l %12l %l", "User", "MNG", "Notified", "Last On", "Age"), strfmt("- %28L %3l %12l %12l %l", "----", "---", "-------", "-------", "---")]);
     for u in ($user.descendants()) {
         if ((u.connected()) || ((u.has_flag('core)) || (u.is($admin))))
             continue;
@@ -333,21 +518,25 @@
         tl = t - tl;
         if (tl / 31449600) {
             v = tl / 31449600;
-            m = (v + " year") + ((v > 1) ? "s" : "");
+            m = (v + " yr") + ((v > 1) ? "s" : "");
             tl = tl % 31449600;
         }
         if (tl / 2592000) {
             v = tl / 2592000;
-            m += (((m ? " " : "") + v) + " month") + ((v > 1) ? "s" : "");
+            m += (((m ? " " : "") + v) + " mnth") + ((v > 1) ? "s" : "");
             tl = tl % 2592000;
         }
         if (tl / 604800) {
             v = tl / 604800;
-            m += (((m ? " " : "") + v) + " week") + ((v > 1) ? "s" : "");
+            m += (((m ? " " : "") + v) + " wk") + ((v > 1) ? "s" : "");
         }
         if (!m)
             m = "newborn";
-        reap += [[last, strfmt("%28L %4l %4l %12l %l", u.namef('xref), listlen(u.managed()), listlen(u.writes()), $time.format("%v", last), m)]];
+        if (u.reap_notified())
+            n = $time.format("%v", u.reap_notified());
+        else
+            n = "";
+        reap += [[last, strfmt("%s %28L %3l %12l %12l %l", ((u.get_setting("rl-email", $user_info))[2]) ? " " : "!", u.namef('xref), listlen(u.managed()), n, $time.format("%v", last), m)]];
     }
     .tell(((reap.sort()).slice(2)).reverse());
     return "---";
@@ -378,11 +567,12 @@
     if (!(> $parse_lib.ask("Send this email message? [yes] ", "(yes|y)", "yes") <))
         return "Message not sent.";
     catch any {
-        $smtp.sendmail(email, subj, @msg);
+        $smtp.sendmail('admin, email, subj, @msg);
     } with {
         .tell_traceback(traceback());
         return "** Unable to send message";
     }
+    user.set_reap_notified(time());
     return "Message sent.";
 };
 
@@ -488,8 +678,6 @@
     }
     .tell(((reap.sort()).slice(2)).reverse());
     return "---";
-    
-    // $#Edited: 19 Nov 96 17:32 $miro
 };
 
 protected method .rehash_all_cmd() {
@@ -555,7 +743,7 @@
     
     (> .perms(caller(), 'command) <);
     (> .check_mojo() <);
-    args = $parse_lib.getopt(args.join(), [["t?ime", 1]]);
+    args = $parse_lib.opt(args.join(), "t?ime");
     opt = "t?ime" in ((args[2]).slice(1));
     if (opt && ((((args[2])[opt])[4]).is_numeric()))
         time = toint(((args[2])[opt])[4]);
@@ -635,8 +823,6 @@
             out += ["-- Suspended Tasks --", tfmt] + suspend;
     }
     return out || "-- No suspended or preempted tasks --";
-    
-    // $#Edited: 21 Nov 96 20:44 $miro
 };
 
 public method .uninit_admin() {
diff -rwu src-3.0a7/and.cdc ColdCore-3.0a9.02/src/and.cdc
--- src-3.0a7/and.cdc	Sat Aug  9 19:09:32 1997
+++ ColdCore-3.0a9.02/src/and.cdc	Tue Aug 19 12:15:35 1997
@@ -7,7 +7,6 @@
 var $root inited = 1;
 var $root managed = [$and];
 var $root manager = $and;
-var $root owned = [$and];
 var $root trusted = [];
 
 public method .test() {
@@ -38,8 +37,6 @@
             str = (str + tostr(x)) + " && ";
     }
     return ("(" + (str && (str.subrange(1, (str.length()) - 4)))) + ")";
-    
-    // $#Edited: 11 Dec 96 09:48 $brandon
 };
 
 
diff -rwu src-3.0a7/and_lock_frob.cdc ColdCore-3.0a9.02/src/and_lock_frob.cdc
--- src-3.0a7/and_lock_frob.cdc	Sat Aug  9 19:09:32 1997
+++ ColdCore-3.0a9.02/src/and_lock_frob.cdc	Tue Aug 19 12:15:35 1997
@@ -5,7 +5,6 @@
 var $root flags = ['methods, 'code, 'variables, 'core];
 var $root managed = [$and_lock_frob];
 var $root manager = $and_lock_frob;
-var $root owned = [$and_lock_frob];
 
 public method .lock_name() {
     arg lock, @type;
@@ -17,8 +16,6 @@
         default:
             return (((lock[1]).lock_name(type)) + " and ") + ((lock[2]).lock_name(type));
     }
-    
-    // $#Edited: 30 Nov 96 21:22 $miro
 };
 
 public method .new_lock() {
diff -rwu src-3.0a7/antisocial.cdc ColdCore-3.0a9.02/src/antisocial.cdc
--- src-3.0a7/antisocial.cdc	Sat Aug  9 19:09:48 1997
+++ ColdCore-3.0a9.02/src/antisocial.cdc	Tue Aug 19 12:15:19 1997
@@ -2,8 +2,10 @@
 new object $antisocial: $user_interfaces;
 
 var $antisocial antisocial_msgs = #[["feh", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " kicks ", <$generator, ["who", [], [], 'gen_who]>, " rather firmly in the kiester."], #[['this, $antisocial]]]>]];
+var $foundation defined_msgs = #[["ice", #[['branches, ["general", "actor", "who"]]]], ["eye", #[['branches, ["general", "actor", "who"]]]], ["pat", #[['branches, ["general", "actor", "who"]]]], ["pummel", #[['branches, ["general", "actor", "who"]]]], ["prod", #[['branches, ["general", "actor", "who"]]]], ["kick", #[['branches, ["general", "actor", "who"]]]], ["hug", #[['branches, ["general", "actor", "who"]]]], ["beat", #[['branches, ["general", "actor", "who"]]]], ["hit", #[['branches, ["general", "actor", "who"]]]], ["peer", #[['branches, ["general", "actor", "who"]]]], ["bite", #[['branches, ["general", "actor", "who"]]]], ["nip", #[['branches, ["general", "actor", "who"]]]], ["poke", #[['branches, ["general", "actor", "who"]]]], ["bonk", #[['branches, ["general", "actor", "who"]]]], ["fart", #[['branches, ["general", "actor", "who"]]]]];
+var $foundation msgs = #[["ice", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pours a bucket of ice water over ", <$generator, ["who", [], [], 'gen_who]>, "'s head."], #[]]>], ["actor", <$ctext_frob, [["You pour a bucket of ice water over ", <$generator, ["who", [], [], 'gen_who]>, "'s head."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pours a bucket of ice water over your head."], #[]]>]]], ["eye", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " eyes ", <$generator, ["who", [], [], 'gen_who]>, " warily."], #[]]>], ["actor", <$ctext_frob, [["You eye ", <$generator, ["who", [], [], 'gen_who]>, " warily."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " eyes you warily."], #[]]>]]], ["pat", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pats ", <$generator, ["who", [], [], 'gen_who]>, " onna head."], #[]]>], ["actor", <$ctext_frob, [["You pat ", <$generator, ["who", [], [], 'gen_who]>, " onna head."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pats you onna head."], #[]]>]]], ["pummel", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pummels ", <$generator, ["who", [], [], 'gen_who]>, " into a milky white substance."], #[]]>], ["actor", <$ctext_frob, [["You pummel ", <$generator, ["who", [], [], 'gen_who]>, " into a milky white substance."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pummels you into a milky white substance. ouch."], #[]]>]]], ["prod", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " prods ", <$generator, ["who", [], [], 'gen_who]>, " with a cowpoke."], #[]]>], ["actor", <$ctext_frob, [["You prod ", <$generator, ["who", [], [], 'gen_who]>, " with a cowpoke."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " prods you with a cowpoke. ouch."], #[]]>]]], ["kick", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " kicks ", <$generator, ["who", [], [], 'gen_who]>, " firmly in the kiester."], #[]]>], ["actor", <$ctext_frob, [["You kick ", <$generator, ["who", [], [], 'gen_who]>, " firmly in the kiester."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " kicks you firmly in the kiester."], #[]]>]]], ["hug", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " bear hugs ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["actor", <$ctext_frob, [["You bear hug ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " bear hugs you. oif."], #[]]>]]], ["beat", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pulls out a stick and beats the ", <$generator, ["who", [], [], 'gen_who]>, " repeatedly."], #[]]>], ["actor", <$ctext_frob, [["You pull out a stick and beat the ", <$generator, ["who", [], [], 'gen_who]>, " repeatedly."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " pulls out a stick and beats you repeatedly."], #[]]>]]], ["hit", #[["general", <$ctext_frob, [["Boldly, ", <$generator, ["actor", [], [], 'gen_actor]>, " pulls out a stick and beats the ", <$generator, ["who", [], [], 'gen_who]>, " repeatedly."], #[]]>], ["actor", <$ctext_frob, [["Boldly, you pull out a stick and beat the ", <$generator, ["who", [], [], 'gen_who]>, " repeatedly."], #[]]>], ["who", <$ctext_frob, [["Boldly, ", <$generator, ["actor", [], [], 'gen_actor]>, " pulls out a stick and beats you repeatedly. oif."], #[]]>]]], ["peer", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " peers suspiciously at ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["actor", <$ctext_frob, [["You peer suspiciously at ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " peers suspiciously at you."], #[]]>]]], ["bite", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " BITES ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["actor", <$ctext_frob, [["You BITE ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " BITES you."], #[]]>]]], ["nip", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " nips at ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["actor", <$ctext_frob, [["You nip at ", <$generator, ["who", [], [], 'gen_who]>, "."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " nips at you."], #[]]>]]], ["poke", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " firmly jabs ", <$generator, ["pro", [["actor", 1]], ["pp"], 'gen_pro]>, " index finger into ", <$generator, ["who", [], [], 'gen_who]>, "'s ribs."], #[]]>], ["actor", <$ctext_frob, [["You jab your index finger firmly into ", <$generator, ["who", [], [], 'gen_who]>, "'s ribs."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " firmly jabs ", <$generator, ["pro", [["actor", 1]], ["pp"], 'gen_pro]>, " index finger into your ribs. oif."], #[]]>]]], ["bonk", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " maliciously bonks ", <$generator, ["who", [], [], 'gen_who]>, " onna head."], #[]]>], ["actor", <$ctext_frob, [["You maliciously bonk ", <$generator, ["who", [], [], 'gen_who]>, " onna head."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " maliciously bonks you onna head. oif."], #[]]>]]], ["fart", #[["general", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " farts in ", <$generator, ["who", [], [], 'gen_who]>, "'s general direction."], #[]]>], ["actor", <$ctext_frob, [["You fart in ", <$generator, ["who", [], [], 'gen_who]>, "'s general direction."], #[]]>], ["who", <$ctext_frob, [[<$generator, ["actor", [], [], 'gen_actor]>, " farts in your general direction."], #[]]>]]]];
 var $has_commands local = \
-	#[["test", [["test", "", "test", 'anti_cmd, #[]]]], ["ice", [["ice", "*", "ice <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+	#[["ice", [["ice", "*", "ice <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
   ["eye",\
     [["eye", "*", "eye <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
   ["fart",\
@@ -19,7 +21,17 @@
   ["prod",\
     [["prod", "*", "prod <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
   ["bonk",\
-    [["bonk", "*", "bonk <object>", 'anti_cmd, #[[1, ['object, []]]]]]]];
+    [["bonk", "*", "bonk <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+  ["hug",\
+    [["hug", "*", "hug <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+  ["hit",\
+    [["hit", "*", "hit <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+  ["peer",\
+    [["peer", "*", "peer <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+  ["bite",\
+    [["bite", "*", "bite <object>", 'anti_cmd, #[[1, ['object, []]]]]]],\
+  ["nip",\
+    [["nip", "*", "nip <object>", 'anti_cmd, #[[1, ['object, []]]]]]]];
 var $has_commands remote = #[];
 var $has_commands shortcuts = #[];
 var $root created_on = 838182893;
@@ -27,7 +39,6 @@
 var $root inited = 1;
 var $root managed = [$antisocial];
 var $root manager = $antisocial;
-var $root owned = [$antisocial];
 
 protected method .anti_cmd() {
     arg cmdstr, cmd, @who;
@@ -37,16 +48,11 @@
     vars = #[["$actor", this()], ["actor", .name()]];
     if (who)
         vars = (vars.add("$who", who[1])).add("who", (who[1]).name());
-    (.location()).announce(.eval_message(cmd, vars, definer()));
-    
-    // $#Edited: 08 Mar 97 22:13 $miro
+    (.location()).announce(.eval_message(cmd, definer(), vars));
 };
 
 public method .antisocial_msgs() {
     return antisocial_msgs;
-    
-    // $#Edited: 23 Jul 96 23:03 $xymox
-    // $#Edited: 08 Mar 97 22:13 $miro
 };
 
 public method .set_antisocial() {
@@ -59,9 +65,6 @@
     compiler = $compiler;
     message = compiler.compile_cml(message);
     antisocial_msgs = antisocial_msgs.add(name, message);
-    
-    // $#Edited: 23 Jul 96 22:51 $xymox
-    // $#Edited: 08 Mar 97 22:13 $miro
 };
 
 public method .test() {
@@ -75,9 +78,6 @@
     m = message.set_vars(vars);
     .tell(m);
     .announce(m, this());
-    
-    // $#Edited: 23 Jul 96 23:23 $xymox
-    // $#Edited: 08 Mar 97 22:13 $miro
 };
 
 
diff -rwu src-3.0a7/bad_commands.cdc ColdCore-3.0a9.02/src/bad_commands.cdc
--- src-3.0a7/bad_commands.cdc	Sat Aug  9 19:09:30 1997
+++ ColdCore-3.0a9.02/src/bad_commands.cdc	Tue Aug 19 12:15:18 1997
@@ -1,7 +1,7 @@
 
 new object $bad_commands: $user_interfaces;
 
-var $bad_commands non_supported_cmds = #[["quit", "@quit"], ["WHO", "@who"], ["@create", "@new"], ["help", "@help"], ["news", "@news"], ["page", "@page"], ["@gender", "@set gender"], ["uptime", "@status"], ["@alias", "@add-command-alias` or `@add-name-alias"], ["@check", "@monitor"], ["@paranoid", "@monitor"], ["@version", "@status"], ["@lock", "@set lock"], ["@unlock", "@set lock"]];
+var $bad_commands non_supported_cmds = #[["quit", "@quit"], ["WHO", "@who"], ["@create", "@new"], ["help", "@help"], ["news", "@news"], ["page", "@page"], ["@gender", "@set gender"], ["uptime", "@status"], ["@alias", "@add-command-alias` or `@add-name-alias"], ["@check", "@monitor"], ["@paranoid", "@monitor"], ["@version", "@status"], ["@lock", "@set lock"], ["@unlock", "@set lock"], ["+com", ["See: `@help Channels`"]]];
 var $has_commands local = \
 	#[["@create", [["@create", "*", "@create <any>", 'old_command_cmd, #[[1, ['any, []]]]]]],\
   ["help",\
@@ -27,13 +27,14 @@
   ["@lock",\
     [["@lock", "*", "@lock <any>", 'old_command_cmd, #[[1, ['any, []]]]]]],\
   ["@unlock",\
-    [["@unlock", "*", "@unlock <any>", 'old_command_cmd, #[[1, ['any, []]]]]]]];
+    [["@unlock", "*", "@unlock <any>", 'old_command_cmd, #[[1, ['any, []]]]]]],\
+  ["+com",\
+    [["+com", "*", "+com <any>", 'old_command_cmd, #[[1, ['any, []]]]]]]];
 var $root created_on = 796268969;
 var $root flags = ['methods, 'code, 'variables, 'core];
 var $root inited = 1;
 var $root managed = [$bad_commands];
 var $root manager = $bad_commands;
-var $root owned = [$bad_commands];
 
 public method .add_old_cmd_reference() {
     arg oldcmd, @newcmd;
@@ -59,8 +60,12 @@
     (> .perms(caller(), 'command) <);
     equiv = (| ($bad_commands.non_supported_cmds())[com] |);
     line = ("Oops, `" + com) + "` is not supported here.";
-    if (equiv)
+    if (equiv) {
+        if (type(equiv) == 'list)
+            line = (line + "  ") + (equiv[1]);
+        else
         line = ((line + "  Try `") + equiv) + "`";
+    }
     .tell(line);
     .tell("Use `@help commands` for an explanation on the differences in commands.");
 };
diff -rwu src-3.0a7/body.cdc ColdCore-3.0a9.02/src/body.cdc
--- src-3.0a7/body.cdc	Sat Aug  9 19:09:30 1997
+++ ColdCore-3.0a9.02/src/body.cdc	Tue Aug 19 12:15:18 1997
@@ -35,14 +35,12 @@
 var $located location = $void;
 var $located obvious = 1;
*var $location contents = ' ' body.cdc
*var $root child_index = '-' body.cdc
 var $root created_on = 796268969;
 var $root fertile = 1;
 var $root flags = ['methods, 'code, 'fertile, 'variables, 'core, 'command_cache];
 var $root inited = 1;
 var $root managed = [$body];
 var $root manager = $body;
-var $root owned = [$body];
 var $thing gender = $gender_neuter;
 
 public method ._tell() {
@@ -89,8 +87,6 @@
 
 public method .actions() {
     return actions;
-    
-    // $#Edited: 17 Mar 97 13:51 $brandon
 };
 
 protected method .add_interaction() {
@@ -114,17 +110,17 @@
 
 public method .description() {
     arg flags;
-    var ctext, what, w;
+    var ctext, what, w, o;
     
+    o = [];
     ctext = (> pass(flags) <);
     if ((w = .wearing()))
-        ctext += [((((.gender()).pronoun('psc)) + " is wearing ") + ((w.mmap('name)).to_english())) + "."];
+        o += [((((.gender()).pronoun('psc)) + " is wearing ") + ((w.mmap('name)).to_english())) + "."];
     
     //   else
-    //       ctext += [.gender().pronoun('psc) + " is naked, baring it all to the world."];
+    //       o += [.gender().pronoun('psc) + " is naked, baring it all to the world."];
+    ctext += [$ctext_frob.new_with(o)];
     return ctext;
-    
-    // $#Edited: 23 Dec 96 13:37 $brandon
 };
 
 public method .directed_tell() {
@@ -146,8 +142,6 @@
 
 public method .environment() {
     return pass() + (wearing || []);
-    
-    // $#Edited: 27 Nov 96 14:01 $brandon
 };
 
 protected method .esay_cmd() {
@@ -164,8 +158,6 @@
         throw(~perm, caller() + " is not $event_handler.");
     if (event == 'realm_announce)
         .tell_realm_announce(origin, args[1]);
-    
-    // $#Edited: 07 Mar 97 16:32 $miro
 };
 
 protected method .handle_parser_result() {
@@ -181,13 +173,13 @@
                 .ptell(r, #[['type, 'parser], ['command, more[2]]]);
         case 'failed:
             for c in (($place_lib.coordinate_shortcuts()).keys()) {
-                if (line.match_template(c)) {
-                    .tell(("There is no exit " + line) + " here.");
+                if (action.match_template(c)) {
+                    .tell(("There is no exit " + action) + " here.");
                     r = 1;
                 }
             }
             if (!r)
-                .tell(("I don't understand " + (line.chop((.linelen()) - 22))) + ".");
+                .tell(("I don't understand " + (action.chop((.actionlen()) - 22))) + ".");
         case 'ok:
             // do nothing, probably a null command
         default:
@@ -205,8 +197,6 @@
         default:
             return (> pass(type) <);
     }
-    
-    // $# Edited 28 Oct 1995 21:08 Lynx ($lynx)
 };
 
 protected method .parse_interaction_reference() {
@@ -303,8 +293,6 @@
     arg what, flags;
     
     .tell(what);
-    
-    // $#Edited: 30 Nov 96 10:58 $brandon
 };
 
 protected method .quote_cmd() {
@@ -332,8 +320,6 @@
 
 public method .reset_actions() {
     (| clear_var('actions) |);
-    
-    // $#Edited: 17 Mar 97 13:51 $brandon
 };
 
 protected method .say_cmd() {
@@ -378,29 +364,33 @@
 public method .tell() {
     arg @args;
     
-    // $#Edited: 18 Dec 96 09:27 $brandon
 };
 
 public method .tell_realm_announce() {
     arg realm, message;
-    var loc, r;
+    var loc, realm, propagator, prop_list, len, i;
     
     pause();
     loc = .location();
-    if (!(loc.will_propagate()))
+    if (!(propagator = loc.will_propagate()))
         return;
-    r = (.location()).realm();
-    while (r != $realm) {
-        if (r == realm) {
-            .tell(message);
+    prop_list = [propagator];
+    realm = (.location()).realm();
+    while (realm != $realm) {
+        if (realm == realm) {
+            len = prop_list.length();
+            for i in [1 .. len] {
+                message = message.propagate(prop_list[(len - i) + 1]);
+                if (!message)
             return;
         }
-        if (!(r.will_propagate()))
+            .tell(message);
+        }
+        if (!(propagator = realm.will_propagate()))
             return;
-        r = (r.parents())[1];
+        prop_list += [propagator];
+        realm = (realm.parents())[1];
     }
-    
-    // $#Edited: 07 Mar 97 16:32 $miro
 };
 
 public method .tell_traceback() {
@@ -408,8 +398,6 @@
     
     if ((.manager()) != this())
         (.manager()).tell_traceback(traceback);
-    
-    // $#Edited: 17 Dec 96 21:20 $brandon
 };
 
 protected method .think_cmd() {
@@ -424,7 +412,10 @@
     var targets, target, line;
     
     (> .perms(caller(), $user, $body) <);
+    catch ~ambig
     targets = (> .parse_interaction_reference(who, "say") <);
+    with
+        return (traceback()[1])[2];
     .add_interaction('objs, targets);
     line = (((.name()) + " (to ") + ((targets.mmap('name)).to_english())) + ") ";
     if (message)
diff -rwu src-3.0a7/body_cave.cdc ColdCore-3.0a9.02/src/body_cave.cdc
--- src-3.0a7/body_cave.cdc	Mon Aug 18 10:09:23 1997
+++ ColdCore-3.0a9.02/src/body_cave.cdc	Tue Aug 19 12:15:20 1997
@@ -2,11 +2,12 @@
 new object $body_cave: $place;
 
 var $described prose = [];
+var $event_handler hooks = #[];
 var $has_commands local = #[];
 var $has_commands remote = #[];
 var $has_commands shortcuts = #[];
 var $has_name name = ['uniq, "Body Cave", "the Body Cave"];
*var $location contents = ' ' body_cave.cdc
 var $physical visibility = -100;
 var $place entrances = [];
 var $place exits = [];
@@ -16,13 +17,11 @@
 var $root inited = 1;
 var $root managed = [$body_cave];
 var $root manager = $body_cave;
-var $root owned = [$body_cave];
-var $root settings = #[["public-home", 1], ["propagate", 1]];
+var $root settings = #[["public-home", 1], ["propagate", 0], ["map-position", 0]];
 
 public method .announce() {
     arg @who_cares;
     
-    // $#Edited: 18 Aug 96 22:06 $jenner
 };
 
 
diff -rwu src-3.0a7/bs_eval.cdc ColdCore-3.0a9.02/src/bs_eval.cdc
--- src-3.0a7/bs_eval.cdc	Sat Aug  9 19:09:48 1997
+++ ColdCore-3.0a9.02/src/bs_eval.cdc	Tue Aug 19 12:15:17 1997
@@ -1,13 +1,11 @@
 
 new object $bs_eval: $evaluator;
 
*var $root child_index = '-' bs_eval.cdc
 var $root created_on = 837583704;
 var $root flags = ['variables, 'methods, 'code, 'core];
 var $root inited = 1;
 var $root managed = [$bs_eval];
 var $root manager = $bs_eval;
-var $root owned = [$bs_eval];
 
 public method ._separate_list() {
     arg sep, l;
@@ -17,22 +15,30 @@
     if (sep == "english")
         return [l.to_english()];
     return [l.join(sep)];
+};
+
+public method .eval_formatter() {
+    arg form, vars;
+    var text;
     
-    // $#Edited: 16 Jul 96 08:12 $kahuna
-    // $#Edited: 17 Jul 96 00:05 $kahuna
-    // $#Edited: 17 Jul 96 00:08 $jenner
-    // $#Edited: 18 Jul 96 14:56 $levi
+    if ((vars['time]) == 'post) {
+        [text, vars] = (vars['formatter]).eval_formatter(form, vars);
+        return [[text], vars];
+    }
+    return pass(form, vars);
 };
 
-public method .gen_columnize() {
+public method .gen_data() {
     arg vars, flags, args;
-    var v, cols;
+    var method, data;
     
-    cols = (| flags.getkey("cols") |) || "*";
     [args, vars] = ._eval_ctext(args, vars);
-    return [[(cols == "*") ? (args.lcolumnize()) : (args.columnize(toint(cols)))], vars];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
+    method = (| flags.getkey("source") |);
+    catch ~methodnf
+        data = (vars['this]).(tosym("gen_" + method))();
+    with
+        return [[">>>invalid data source<<<"], vars];
+    return [[data], vars];
 };
 
 public method .gen_def() {
@@ -42,21 +48,25 @@
     name = flags.getkey("var");
     val = args[1];
     return [[""], vars.add(name, val)];
-    
-    // $#Edited: 29 Nov 96 17:14 $miro
 };
 
 public method .gen_english() {
     arg vars, flags, args;
-    var sep, empty, and, text;
+    var sep, empty, and, text, item;
     
-    sep = ((| flags.getkey("separator") |) || ",") + " ";
+    sep = (| flags.getkey("separator") |) || ", ";
     empty = (| flags.getkey("empty") |) || "nothing";
     and = (| flags.getkey("and") |) || " and ";
     [text, vars] = ._eval_ctext(args, vars);
+    if (((vars['time]) == 'pre) || find item in (text) where (type(item) == 'frob)) {
+        return [[(<$generator, ["english", flags, text, 'gen_english]>)], vars];
+    } else {
+        if (type(sep) == 'list)
+            sep = sep[1];
+        if (type(and) == 'list)
+            and = and[1];
     return [[text.to_english(empty, and, sep)], vars];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
+    }
 };
 
 public method .gen_foreach() {
@@ -78,19 +88,21 @@
     if ((vars['time]) == 'pre)
         out = ._separate_list(sep, out);
     return [out, vars];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
 };
 
 public method .gen_join() {
     arg vars, flags, args;
-    var v, sep;
+    var v, sep, item;
     
     sep = (| flags.getkey("separator") |) || " ";
     [args, vars] = ._eval_ctext(args, vars);
+    if (((vars['time]) == 'pre) || find item in (args) where (type(item) == 'frob)) {
+        return [[(<$generator, ["join", flags, args, 'gen_join]>)], vars];
+    } else {
+        if (type(sep) == 'list)
+            sep = sep[1];
     return [._separate_list(sep, args), vars];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
+    }
 };
 
 public method .gen_name() {
@@ -116,12 +128,6 @@
         out += [name];
     }
     return [._separate_list(sep, out), vars];
-    
-    // $#Edited: 16 Jul 96 08:12 $kahuna
-    // $#Edited: 17 Jul 96 00:05 $kahuna
-    // $#Edited: 17 Jul 96 00:08 $jenner
-    // $#Edited: 29 Nov 96 16:22 $miro
-    // $#Edited: 30 Nov 96 21:22 $miro
 };
 
 public method .gen_pro() {
@@ -151,19 +157,12 @@
     with
         return [[(">>ERROR: Invalid pronoun type '" + (args[1])) + "'.<<"], vars];
     return [out, vars];
-    
-    // $#Edited: 24 Jul 96 19:55 $jenner
-    // $#Edited: 29 Nov 96 17:14 $miro
 };
 
 public method .gen_servername() {
     arg vars, flags, args;
     
     return [[$motd.server_name()], vars];
-    
-    // $#Edited: 16 Jul 96 08:12 $kahuna
-    // $#Edited: 17 Jul 96 00:05 $kahuna
-    // $#Edited: 17 Jul 96 00:08 $jenner
 };
 
 public method .gen_servname() {
@@ -179,8 +178,6 @@
     name = flags.getkey("var");
     [text, vars] = ._eval_ctext(args[1], vars);
     return [[""], vars.add(name, text[1])];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
 };
 
 public method .gen_switch() {
@@ -194,7 +191,6 @@
         return ._eval_ctext(args[v], vars);
     if (args.contains('ranges)) {
         if ((num = v.is_numeric()))
-            ;
         n = toint(v);
         done = 0;
         for i in (args['ranges]) {
@@ -211,8 +207,6 @@
     if (args.contains('default))
         return ._eval_ctext(args['default], vars);
     return [((vars['time]) == 'pre) ? [""] : "", vars];
-    
-    // $#Edited: 22 Jan 97 16:37 $miro
 };
 
 public method .gen_time() {
@@ -221,10 +215,8 @@
     
     [args, vars] = ._eval_ctext(args, vars);
     if (!args)
-        return [tostr(time()), vars];
+        return [[tostr(time())], vars];
     return [[$time.format(args[1])], vars];
-    
-    // $#Edited: 29 Nov 96 16:22 $miro
 };
 
 public method .gen_vars() {
@@ -238,11 +230,6 @@
             out += [v];
     }
     return [._separate_list(sep, out), vars];
-    
-    // $#Edited: 16 Jul 96 08:12 $kahuna
-    // $#Edited: 17 Jul 96 00:05 $kahuna
-    // $#Edited: 17 Jul 96 00:08 $jenner
-    // $#Edited: 30 Nov 96 21:22 $miro
 };
 
 
diff -rwu src-3.0a7/buffer.cdc ColdCore-3.0a9.02/src/buffer.cdc
--- src-3.0a7/buffer.cdc	Sat Aug  9 19:09:29 1997
+++ ColdCore-3.0a9.02/src/buffer.cdc	Tue Aug 19 12:15:16 1997
@@ -6,7 +6,6 @@
 var $root inited = 1;
 var $root managed = [$buffer];
 var $root manager = $buffer;
-var $root owned = [$buffer];
 var $root trusted = [];
 
 public method .break_lines() {
@@ -39,6 +38,26 @@
     return out;
 };
 
+public method .bufsub() {
+    arg buf, a, b;
+    var i, la, lb, lt;
+    
+    // do we need a builtin for this?
+    // shagged from Kipp's core, until I write a builtin, optimized by Brandon
+    if ((a == b) || ((buflen(a) > buflen(buf)) || ((!a) || (!buf))))
+        return buf;
+    la = buflen(a);
+    lb = buflen(b);
+    lt = buflen(buf) - la;
+    i = 1;
+    anticipate_assignment();
+    while ((i < lt) && (i = bufidx(buf, a, i))) {
+        buf = (subbuf(buf, 1, i - 1) + b) + subbuf(buf, i + la);
+        i += lb;
+    }
+    return buf;
+};
+
 public method .from_list() {
     arg list;
     var buf, i;
@@ -54,7 +73,7 @@
 
 public method .from_strings(): native;
 
-private method .from_veil_pkts(): native;
+public method .from_veil_pkts(): native;
 
 public method .length(): native;
 
@@ -73,6 +92,6 @@
 
 public method .to_strings(): native;
 
-private method .to_veil_pkts(): native;
+public method .to_veil_pkts(): native;
 
 
diff -rwu src-3.0a7/builder.cdc ColdCore-3.0a9.02/src/builder.cdc
--- src-3.0a7/builder.cdc	Sat Aug  9 19:09:31 1997
+++ ColdCore-3.0a9.02/src/builder.cdc	Tue Aug 19 12:15:19 1997
@@ -1,5 +1,5 @@
 
-new object $builder: $user;
+new object $builder: $player;
 
 var $channel_ui active_channels = #[];
 var $channel_ui channel_dict = #[];
@@ -14,7 +14,7 @@
   ["@par?ents",\
     [["@par?ents", "*", "@par?ents <object>", 'parents_cmd, #[[1, ['object, []]]]]]],\
   ["@build",\
-    [["@build", "*", "@build <any:-conf?igure>", 'build_cmd, #[[1, ['any_opt, [["conf?igure"]]]]]]]],\
+    [["@build", "*", "@build <any:-conf?igure>", 'build_cmd, #[[1, ['any_opt, ["conf?igure"]]]]]]],\
   ["@attach",\
     [["@attach", "* to *", "@attach <any> to <descendant of $place>", 'attach_cmd, #[[1, ['any, []]], [3, ['descendant, [$place]]]]]]],\
   ["@destroy",\
@@ -45,14 +45,12 @@
 var $root inited = 1;
 var $root managed = [$builder];
 var $root manager = $builder;
-var $root owned = [$builder];
 var $root quota = 75000;
 var $root settings = #[["home", $body_cave]];
 var $thing gender = $gender_neuter;
 var $user connected_at = 0;
 var $user connections = [];
-var $user context = #[['last, $body_cave]];
-var $user formatter = $mail_list;
+var $user formatter = $plain_format;
 var $user last_command_at = 0;
 var $user modes = #[];
 var $user parsers = [$command_parser];
@@ -68,7 +66,7 @@
         source = .location();
     } else {
         catch any
-            source = (> .match_environment(source_str) <);
+            source = (> .match_environment(source) <);
         with
             return (traceback()[1])[2];
         if (!(source.is($place)))
@@ -90,6 +88,17 @@
     return ("Successfully attached exit " + (exit.name())) + ".";
 };
 
+public method .bug_fixed() {
+    arg list, subj, msg;
+    var err, mail;
+    
+    list = (> $mail_lib.match_mail_recipient(list) <);
+    mail = $mail_message.new_mail();
+    mail.set_subject(subj);
+    mail.set_text(msg);
+    (> mail.send(list) <);
+};
+
 protected method .build_attach_exit() {
     arg exit, source, dest;
     var line;
@@ -97,7 +106,6 @@
     catch any {
         exit.attach(source, dest);
     } with {
-        $brandon.tell_traceback(traceback());
         .tell(("Unable to attach " + (exit.name())) + " because: ");
         .tell("  " + ((traceback()[1])[2]));
         line = .prompt("Continue building? ");
@@ -170,8 +178,6 @@
     if (exits[2])
         (> (exits[2]).configure(set) <);
     return "Completed post-configuration.";
-    
-    // $#Edited: 19 Feb 97 02:36 $miro
 };
 
 protected method .build_generate_exit() {
@@ -366,8 +372,6 @@
         }
     }
     return ans;
-    
-    // $#Edited: 30 Nov 96 21:22 $miro
 };
 
 protected method .build_query_exit() {
@@ -420,9 +424,6 @@
         }
     }
     return realm;
-    
-    // $#Edited: 15 Feb 97 19:53 $miro
-    // $#Edited: 19 Feb 97 02:23 $miro
 };
 
 protected method .build_set_name() {
@@ -448,13 +449,18 @@
     return [("Children of " + (what.namef('xref))) + ":"] + (._list_objects(what.children(), 'parents));
 };
 
+root method .core_builder() {
+    // for now we dont core the bug system
+    (| .del_command("@bug?s <any>", 'bug_cmd) |);
+    (| .del_method('bug_cmd) |);
+};
+
 protected method .define_msg_cmd() {
     arg cmdstr, cmd, args;
-    var what, opts, def, o, i, br, ref, compiler, defopts, eval;
+    var what, opts, def, o, i, br, ref, compiler, eval, getter;
     
     (> .perms(caller(), 'command) <);
-    defopts = [["b?ranches", 1], ["c?ompiler", 1], ["e?valuator", 1]];
-    [args, opts] = $parse_lib.getopt(args, defopts);
+    [args, opts] = $parse_lib.opt(args, "b?ranches", "c?ompiler", "e?valuator", "g?etter");
     args = join(args);
     what = split(args, " *: *");
     if (listlen(what) != 2)
@@ -519,6 +525,20 @@
             }
         }
     }
+    if ((i = "g?etter" in o)) {
+        getter = (opts[i])[4];
+        if (!getter) {
+            .tell("No getter specified with +getter=??");
+        } else {
+            getter = (> tosym(getter) <);
+            catch any {
+                def.set_msg_attr(what, 'getter, getter);
+                .tell((("Set getter for " + ref) + " to ") + getter);
+            } with {
+                .tell((traceback()[1])[2]);
+            }
+        }
+    }
 };
 
 protected method .destroy_cmd() {
@@ -527,8 +547,8 @@
     
     (> .perms(caller(), 'command) <);
     cmdstr = cmdstr.trim();
-    if ((cmdstr.trim()) in ["@dest", "@destroy"]) {
-        yes = .prompt(("Destroy '" + name) + "'? ");
+    if (((cmdstr.trim()) in ["@dest", "@destroy"]) && ((objs.length()) > 0)) {
+        yes = .prompt(("Destroy '" + ((objs[1]).namef('xref))) + "'? ");
         if (!(yes in ["y", "yes"]))
             return "Ok, aborting..";
     }
@@ -634,8 +654,6 @@
             return .build_cleanup([dest, dnew.and(1)], [leave, dnew.and(2)]);
         }
     }
-    
-    // $#Edited: 19 Feb 97 02:23 $miro
 };
 
 public method .format_messages() {
@@ -698,8 +716,168 @@
     (> .perms(caller(), 'command) <);
     realms = ($place_lib.known_realms()).union($realm.descendants());
     .tell(["Realms:", ""] + ((realms.mmap('name)).prefix("    ")));
+};
+
+public method .scan_bugs() {
+    arg buglist;
+    var bug, pos, choice, str, junk;
+    
+    .tell("");
+    
+    // No bugs? Return:
+    if (!buglist) {
+        .tell("There are no bugs in this category.");
+        return;
+    }
+    pos = 1;
+    while (choice != "X") {
+        bug = buglist[pos];
+    
+        // Get the current bug obref.
+        // Display the bug:
+        .tell("");
+        .menubar((("Report " + tostr(pos)) + " of ") + tostr(buglist.length()));
+    
+        // if (.preference('pagination) == 'on)
+        //    .tell_paginated(bug.format().prefix(" "));
+        // else
+        .tell((bug.format()).prefix(" "));
+        .menubar();
+        str = "[RETURN] Next, [P]rev, [X] Exit, [C]laim, [F]ix, [D]ismiss, [A]ppend, [#]";
+    
+        // Allow admins to archive:
+        //if (.is($admin))
+        //    str = str + "[A]rchive";
+        choice = .prompt(str + ": ");
+        .tell("");
+        if (choice == "@abort")
+            throw(~aborted, "Aborted!");
+        if (choice && ((choice[1]) == "~")) {
+            .menubar("Execute Command");
+            .execute_line(choice.subrange(2));
+            .menubar();
+            choice = 'do_nothing;
+        }
+        switch (choice) {
+            case 'do_nothing:
+                // Do nothing.
+            case "A":
+                // Append Text:
+                .tell("Append text to report...");
+                junk = .read();
+                if (junk && (junk != 'aborted)) {
+                    bug.set_text((bug.text()) + ["----------------------------------------------------------------------------", ("Addendum by " + (.name())) + ":", @junk]);
+                    .tell("Text appended.");
+                } else {
+                    .tell("Aborted.");
+                }
     
-    // $#Edited: 15 Feb 97 19:53 $miro
+                // case "A":
+                //     // Archive
+                //     if (.is($admin)) {
+                //         if (bug.fixed()) {
+                //             bug.chparents($archived_bugs);
+                //             .tell("Bug archived.");
+                //         } else {
+                //             .tell("You may only archive repaired bugs.");
+                //             choice = 'no_scroll;
+                //        }
+                //     }
+            case "D":
+                // Dismiss
+                .tell("Enter a description of the dismissal:");
+                str = .read();
+                if ((str == 'aborted) || (!str)) {
+                    .tell("Aborted.");
+                } else {
+                    bug.set_text((bug.text()) + [("Addendum by " + (.name())) + ":", "", @str]);
+                    $bug_handler.dismiss(bug);
+    
+                    // bug.chparents($dismissed_bugs);
+                    .tell("Bug dismissed.");
+                }
+            case "P":
+                // Previous
+                choice = 'no_scroll;
+                if (pos > 1)
+                    pos--;
+                else
+                    .tell("You are at the beginning of the list.");
+            case "F":
+                // Fix:
+                if ((bug.fixed()) && ((bug.owner()) != this())) {
+                    .tell("This bug has already been marked as being fixed. If there are further problems, please submit another report.");
+                } else {
+                    if (bug.fixed()) {
+                        .tell("This bug has already been repaired.");
+                        continue;
+                    }
+                    .tell("You may directly [P]aste the contents of the bug report to the player bug");
+                    str = .prompt("forum, [C]ompose a message to sent there, [RET] to do nothing, or e[X]it: ");
+                    if (str == "P") {
+                        .bug_fixed("*bug", (.name()) + " has repaired the following bug:", [@$mail_lib.indent_reply(bug.forum_format())]);
+                    } else if (str == "C") {
+                        junk = .read();
+                        if (junk && (type(junk) == 'list)) {
+                            //    .bug_fixed("*bugfix",  @junk);
+                            .bug_fixed("*bugs", (.name()) + " has repaired the following bug:", [@$mail_lib.indent_reply(bug.forum_format())] + [@junk]);
+                        }
+                        bug.set_fixed(time());
+                        .tell("You have marked this bug as being fixed.");
+                    } else if (str == "x") {
+                        bug.set_fixed(0);
+                        .tell("Aborted.");
+                    } else {
+                        .bug_fixed("*bugs", (.name()) + " has repaired the following bug:", [@$mail_lib.indent_reply(bug.forum_format())]);
+                        bug.set_fixed(time());
+                        .tell("You have marked this bug as being fixed.");
+                    }
+                }
+            case "C":
+                // Claim:
+                if (bug.owner()) {
+                    if ((bug.owner()) != this()) {
+                        .tell(((bug.owner()).name()) + " must relinquish ownership of this bug before you can claim it.");
+                    } else {
+                        bug.set_owner(0);
+                        .tell("You have relinquished ownership of this bug.");
+                    }
+                } else {
+                    bug.set_owner(this());
+                    .tell("This bug report is now under your ownership.");
+                }
+            case "":
+                // Next bug (works differently than scroll-to-next):
+                if (pos < (buglist.length()))
+                    pos++;
+                else
+                    .tell("You have reached the end of the list. Select 'x' to exit.");
+            case "X":
+                // Handler later.
+            default:
+                if (toint(choice)) {
+                    choice = toint(choice);
+                    if ((choice > 0) && (choice <= (buglist.length()))) {
+                        pos = choice;
+                        choice = 'no_scroll;
+                    } else {
+                        .tell("Number out of range.");
+                    }
+                } else {
+                    .tell("Invalid selection.");
+                }
+        }
+    
+        // Scroll to the next bug unless we got CR, -, X:
+        if (!(choice in ["", "-", "X", 'no_scroll])) {
+            if (pos < (buglist.length())) {
+                pos++;
+            } else {
+                .tell("You have reached the end of the list. Exiting.");
+                return;
+            }
+        }
+    }
 };
 
 protected method .teleport() {
@@ -707,8 +885,12 @@
     var m, source, vars;
     
     source = .location();
-    if (!(| .move_to(dest) |))
+    catch any {
+        .move_to(dest);
+    } with {
+        .tell((traceback()[1])[2]);
         return 0;
+    }
     vars = #[["$actor", this()], ["actor", .name()], ["$source", source], ["source", source.name()], ["$dest", dest], ["dest", dest.name()]];
     m = .eval_message("teleport", $builder, vars);
     dest.announce(m);
@@ -755,8 +937,6 @@
     }
     if (!(.teleport(loc)))
         .tell("Sorry.");
-    
-    // $#Moved 12 Feb 97 11:01 from $programmer.teleport_cmd() by $brandon
 };
 
 protected method .undefine_msg_cmd() {
@@ -766,7 +946,7 @@
     (> .perms(caller(), 'command) <);
     
     // it niggles the string enough to 'clean' up little mistakes
-    [args, opts] = $parse_lib.getopt(args, [["b?ranches", 1], ["c?ompiler", 1]]);
+    [args, opts] = $parse_lib.opt(args, "b?ranches", "c?ompiler");
     args = join(args);
     what = split(args, " *: *");
     if (listlen(what) != 2)
diff -rwu src-3.0a7/callback.cdc ColdCore-3.0a9.02/src/callback.cdc
--- src-3.0a7/callback.cdc	Sat Aug  9 19:09:33 1997
+++ ColdCore-3.0a9.02/src/callback.cdc	Tue Aug 19 12:15:36 1997
@@ -6,7 +6,6 @@
 var $root inited = 1;
 var $root managed = [$callback];
 var $root manager = $callback;
-var $root owned = [$callback];
 
 public method .exec() {
     arg self, @args;
diff -rwu src-3.0a7/carry_lock_frob.cdc ColdCore-3.0a9.02/src/carry_lock_frob.cdc
--- src-3.0a7/carry_lock_frob.cdc	Sat Aug  9 19:09:32 1997
+++ ColdCore-3.0a9.02/src/carry_lock_frob.cdc	Tue Aug 19 12:15:35 1997
@@ -11,14 +11,14 @@
     arg value, @type;
     
     return "owner:" + ((value[1]).name());
-    
-    // $#Edited: 13 Feb 97 12:31 $miro
 };
 
-public method .new() {
-    return (<this(), #[]>);
+public method .new_lock() {
+    arg obj;
     
-    // $#Edited: 13 Feb 97 12:31 $miro
+    if (type(obj) != 'objnum)
+        throw(~perm, "Argument is not a dbref.");
+    return (<this(), [obj]>);
 };
 
 public method .try() {
@@ -26,8 +26,6 @@
     
     lock = lock[1];
     return (lock == obj) || ((lock in (obj.contents())) || ((obj == sender()) || ($sys.is_system(obj))));
-    
-    // $#Edited: 13 Feb 97 13:06 $miro
 };
 
 
diff -rwu src-3.0a7/channel_db.cdc ColdCore-3.0a9.02/src/channel_db.cdc
--- src-3.0a7/channel_db.cdc	Sat Aug  9 19:09:46 1997
+++ ColdCore-3.0a9.02/src/channel_db.cdc	Tue Aug 19 12:15:21 1997
@@ -20,18 +20,48 @@
             d = d.add(@x);
     }
     .set_database(d);
-    
-    // $#Edited: 02 Nov 96 17:43 $brad
 };
 
 root method .core_channel_db() {
-    .clean_db();
+    var elem, key, value, d;
+    
+    d = #[];
+    for elem in (.database()) {
+        refresh();
+        [key, value] = elem;
+        if (!valid(value[5]))
+            continue;
+        if (filter elem in (value[6]) where (!valid(elem)))
+            continue;
+        d = d.add(key, value);
+    }
+    .set_database(d);
+};
+
+public method .search() {
+    arg channel;
+    var key;
+    
+    if (type(channel) != 'symbol)
+        key = .strip_key(channel);
+    else
+        key = channel;
+    catch ~keynf, ~matchnf
+        return (> .exact_match(key) <);
+    with
+        throw(~keynf, "Unknown channel: " + channel);
+};
+
+public method .strip_key() {
+    arg channel;
+    var key;
+    
+    anticipate_assignment();
+    return lowercase(tostr(channel)).to_symbol();
 };
 
 public method .system_channels() {
     return system_channels;
-    
-    // $#Edited: 03 Nov 96 17:24 $brad
 };
 
 
diff -rwu src-3.0a7/channel_parser.cdc ColdCore-3.0a9.02/src/channel_parser.cdc
--- src-3.0a7/channel_parser.cdc	Sat Aug  9 19:09:47 1997
+++ ColdCore-3.0a9.02/src/channel_parser.cdc	Tue Aug 19 12:15:36 1997
@@ -6,7 +6,6 @@
 var $root inited = 1;
 var $root managed = [$channel_parser];
 var $root manager = $channel_parser;
-var $root owned = [$channel_parser];
 var $user_parsers priority = 5000;
 
 public method .parse() {
diff -rwu src-3.0a7/channel_ui.cdc ColdCore-3.0a9.02/src/channel_ui.cdc
--- src-3.0a7/channel_ui.cdc	Sat Aug  9 19:09:30 1997
+++ ColdCore-3.0a9.02/src/channel_ui.cdc	Tue Aug 19 12:15:18 1997
@@ -7,8 +7,6 @@
 var $channel_ui credits = ["Chuck and Brad"];
 var $has_commands local = \
 	#[["@desc-c?hannel", [["@desc-c?hannel", "* as *", "@desc-c?hannel <any> as <any>", 'describe_channel_cmd, #[[1, ['any, []]], [3, ['any, []]]]]]],\
-  ["@ch?annels",\
-    [["@ch?annels", "*", "@ch?annels <any:+f?ull +d?etailed>", 'list_channels_cmd, #[[1, ['any_opt, [["f?ull"], ["d?etailed"]]]]]]]],\
   ["@join-lock-channel|@jlc",\
     [["@join-lock-channel|@jlc", "* with|to *", "@join-lock-channel|@jlc <any> with|to <any>", 'channel_add_lock_cmd, #[[1, ['any, []]], [3, ['any, []]]]]]],\
   ["@leave-lock-channel|@llc",\
@@ -25,8 +23,8 @@
     [["@del-ch?annel|@delcom", "*", "@del-ch?annel|@delcom <any>", 'delcom_cmd, #[[1, ['any, []]]]]]],\
   ["@purge-channel",\
     [["@purge-channel", "*", "@purge-channel <any>", 'channel_purge_cmd, #[[1, ['any, []]]]]]],\
-  ["@blahblahblah",\
-    [["@blahblahblah", "* * * *", "@blahblahblah <any> <any> <any> <any>", 'addcom_cmd, #[[1, ['any, []]], [2, ['any, []]], [3, ['any, []]], [4, ['any, []]]]]]]];
+  ["@ch?annels",\
+    [["@ch?annels", "*", "@ch?annels <any:+f?ull +d?etailed>", 'channels_cmd, #[[1, ['any_opt, ["f?ull", "d?etailed"]]]]]]]];
 var $has_commands remote = #[];
 var $has_commands shortcuts = #[];
 var $root created_on = 838251646;
@@ -34,7 +32,6 @@
 var $root inited = 1;
 var $root managed = [$channel_ui];
 var $root manager = $channel_ui;
-var $root owned = [$channel_ui];
 var $root trusted_by = [$channel_db];
 
 public method ._broadcast() {
@@ -45,31 +42,22 @@
         throw(~perm, "You are not allowed to call $channel_ui._broadcast() directly");
     for q in ($user_db.connected())
         q.channel_msg(channel, message);
-    
-    // $#Edited: 03 Nov 96 16:16 $brad
-    // $#Edited: 03 Nov 96 16:24 $brad
 };
 
 private method ._del_active_channel() {
     arg key;
     
     active_channels = active_channels.del(key);
-    
-    // $#Edited: 22 Feb 97 02:49 $brad
 };
 
 public method ._del_channel_dict() {
     arg key;
     
     channel_dict = channel_dict.del(key);
-    
-    // $#Edited: 22 Feb 97 03:36 $brad
 };
 
 public method .active_channels() {
     return active_channels;
-    
-    // $#Edited: 02 Nov 96 18:39 $brad
 };
 
 protected method .addcom_cmd() {
@@ -85,7 +73,7 @@
     } else {
         channel = tosym(elements[2]);
         lowerchannel = tosym((elements[2]).lowercase());
-        db = (| $channel_db.exact_match(lowerchannel) |) || 0;
+        db = (| $channel_db.search(lowerchannel) |) || 0;
         if (type(db) == 'list) {
             if ((type(db[3]) == 'frob) && ((!((db[3]).try(sender()))) && (!($sys.is_system(sender())))))
                 return ("Sorry, channel " + (db[1])) + " is join-locked.";
@@ -102,9 +90,6 @@
     channel_dict = channel_dict.add(elements[1], db[1]);
     .channel_on(db[1]);
     return msg;
-    
-    // $#Edited: 15 Feb 97 18:04 $brad
-    // $#Edited: 22 Feb 97 02:15 $brad
 };
 
 public method .broadcast() {
@@ -114,12 +99,12 @@
     (> .perms(sender()) <);
     
     // is this really a command?. If so, do the command.
+    catch any {
     switch (msg) {
         case "who":
             if ((channel in ($channel_db.system_channels())) && (!($sys.is_system(sender()))))
                 return "Sorry, that's a listen only channel.";
-            .channel_members(channel);
-            return;
+                return .channel_members(channel);
         case "off":
             .channel_off(channel);
             return;
@@ -127,6 +112,9 @@
             .channel_on(channel);
             return;
     }
+    } with {
+        return (traceback()[1])[2];
+    }
     if ((channel in ($channel_db.system_channels())) && (channel != 'All))
         return "Sorry, that's a listen only channel.";
     if (!(active_channels.contains(channel)))
@@ -146,10 +134,6 @@
             message = (spammer_name + ": ") + msg;
     }
     ._broadcast(channel, message);
-    
-    // $#Edited: 15 Feb 97 17:20 $brad
-    // $#Edited: 15 Feb 97 18:00 $brad
-    // $#Edited: 15 Feb 97 18:02 $brad
 };
 
 public method .can_create_channel() {
@@ -157,9 +141,6 @@
         return 1;
     else
         return 0;
-    
-    // $#Edited: 06 Nov 96 10:49 $brad
-    // $#Edited: 08 Nov 96 21:30 $brad
 };
 
 protected method .channel_add_lock_cmd() {
@@ -178,7 +159,7 @@
         modestr = "use";
     }
     channel = tosym(this.lowercase());
-    db = (| $channel_db.exact_match(channel) |) || 0;
+    db = (| $channel_db.search(channel) |) || 0;
     if (type(db) == 'list) {
         if ((!(sender() in (db[6]))) && (!($sys.is_system(sender())))) {
             return "Sorry, you're not on the manager list for that channel.";
@@ -202,8 +183,6 @@
     } else {
         return "Channel not found, nothing locked.";
     }
-    
-    // $#Edited: 15 Feb 97 17:34 $brad
 };
 
 public method .channel_add_manager() {
@@ -213,7 +192,7 @@
     channel = (| tosym(channel.lowercase()) |) || 0;
     if (channel == 0)
         return "@add-channel-manager|@acm <user> to <channel>";
-    db = (| $channel_db.exact_match(channel) |) || 0;
+    db = (| $channel_db.search(channel) |) || 0;
     if (db == 0)
         return "That channel does not exist.";
     if ((sender() != (db[5])) && (!($sys.is_system(sender()))))
@@ -222,24 +201,42 @@
         return ((user.name()) + " is already a manager of channel ") + (db[1]);
     $channel_db.value_changed(channel, db.replace(6, [@db[6], user]));
     return "Manager added.";
-    
-    // $#Edited: 30 Nov 96 21:22 $miro
-    // $#Edited: 08 Dec 96 12:47 $brad
-    // $#Edited: 22 Feb 97 02:15 $brad
 };
 
 public method .channel_alias() {
     arg ch_alias;
     
     return (| channel_dict[ch_alias] |) || "";
+};
     
-    // $#Edited: 24 Jul 96 18:50 $user_chuck
+public method .channel_command() {
+    arg cmd, args, opts, detailed, full;
+    var ch, syn, cmd;
+    
+    syn = ("Syntax: " + cmd) + " <channel> <command>";
+    if (listlen(args) < 2)
+        return [syn, "Where <command> is one of: WHO, OFF, ON, or INFO"];
+    [ch, cmd, @args] = args;
+    switch (cmd) {
+        case "who":
+            if ((ch in ($channel_db.system_channels())) && (!($sys.is_system(this()))))
+                return "Sorry, that's a listen only channel.";
+            return .channel_members(ch, full);
+        case "off":
+            .channel_off(ch);
+            return;
+        case "on":
+            .channel_on(ch);
+            return;
+        case "info":
+            return;
+        default:
+            return ("Unknown @channel command: " + cmd) + ", should be: WHO, OFF, ON or INFO";
+    }
 };
 
 public method .channel_creation() {
     return channel_creation;
-    
-    // $#Edited: 08 Nov 96 21:24 $brad
 };
 
 public method .channel_del_manager() {
@@ -249,7 +246,7 @@
     channel = (| tosym(channel.lowercase()) |) || 0;
     if (channel == 0)
         return "@add-channel-manager|@acm <user> from <channel>";
-    db = (| $channel_db.exact_match(channel) |) || 0;
+    db = (| $channel_db.search(channel) |) || 0;
     if (db == 0)
         return "That channel does not exist.";
     if ((sender() != (db[5])) && (!($sys.is_system(sender()))))
@@ -258,39 +255,51 @@
         return ((user.name()) + " is not a manager of channel ") + (db[1]);
     $channel_db.value_changed(channel, db.replace(6, (db[6]).del(user)));
     return "Manager deleted.";
-    
-    // $#Edited: 08 Dec 96 12:48 $brad
-    // $#Edited: 22 Feb 97 02:15 $brad
 };
 
 public method .channel_dict() {
     return channel_dict;
+};
+
+public method .channel_member() {
+    arg channel;
     
-    // $#Edited: 02 Nov 96 18:39 $brad
+    return channel in dict_values(channel_dict || #[]);
 };
 
 public method .channel_members() {
-    arg channel;
-    var q, members;
+    arg channel, @full;
+    var q, members, name, who, line;
     
     members = [];
-    for q in ($user_db.connected()) {
+    [(full ?= 0)] = full;
+    if (full) {
+        line = ("All members of channel " + channel) + " ('*'=listening, '!'=not connected):";
+        who = $user_db.user_dbrefs();
+    } else {
+        line = ("Connected members of channel " + channel) + " ('*'=listening):";
+        who = $user_db.connected();
+    }
+    for q in (who) {
+        if (!valid(q))
+            continue;
+        if (q.channel_member(channel)) {
+            if (q.connected())
+                name = " " + (q.name());
+            else
+                name = "!" + (q.name());
         if (q.listen_channel(channel))
-            members += [q.name()];
+                members += ["*" + name];
+            else
+                members += [" " + name];
     }
-    .tell(("Listening to channel " + channel) + ":");
-    .tell(members.columnize(4));
-    return members;
-    
-    // $#Edited: 24 Jul 96 18:49 $user_chuck
-    // $#Edited: 30 Nov 96 21:22 $miro
+    }
+    return ([line] + ((members.vcolumnize(4, (.linelen()) - 4)).prefix("    "))) + ["---"];
 };
 
 public method .channel_moderator_ok() {
     (> .check_mojo() <);
     return 1;
-    
-    // $#Edited: 24 Jul 96 18:23 $user_chuck
 };
 
 public method .channel_msg() {
@@ -299,8 +308,6 @@
     (caller() == definer()) || (> .perms(sender(), 'system) <);
     if ((channel == 'All) || (active_channels.contains(channel)))
         .tell((("<" + channel) + "> ") + msg);
-    
-    // $#Edited: 15 Feb 97 17:44 $brad
 };
 
 protected method .channel_off() {
@@ -315,8 +322,6 @@
     } else {
         .tell("You are not on this channel.");
     }
-    
-    // $#Edited: 20 Nov 96 20:36 $brad
 };
 
 protected method .channel_on() {
@@ -331,8 +336,6 @@
     } else {
         .tell("You are already on this channel.");
     }
-    
-    // $#Edited: 15 Feb 97 17:58 $brad
 };
 
 public method .channel_purge_cmd() {
@@ -341,8 +344,8 @@
     
     channel = (| tosym(channel.lowercase()) |) || 0;
     if (channel == 0)
-        return "@add-channel-manager|@acm <user> to <channel>";
-    db = (| $channel_db.exact_match(channel) |) || 0;
+        return "@purge-channel <channel>";
+    db = (| $channel_db.search(channel) |) || 0;
     if (db == 0)
         return "That channel does not exist.";
     if ((sender() != (db[5])) && (!($sys.is_system(sender()))))
@@ -357,8 +360,64 @@
         pause();
     }
     return "Channel deleted.";
+};
+
+protected method .channels_cmd() {
+    arg cmdstr, cmd, args;
+    var opts, f, d, cur_channels, cd_keys, cd_values, i, alias, db, active, msg, match_with, match_pattern, tmp, form, add, o;
     
-    // $#Edited: 22 Feb 97 03:38 $brad
+    (> .perms(caller(), 'command) <);
+    [args, opts] = args;
+    o = opts.slice(1);
+    if ((f = (| "f?ull" in o |)))
+        f = (opts[f])[3];
+    if ((d = (| "d?etailed" in o |)))
+        d = (opts[d])[3];
+    if (listlen(args) > 1) {
+        catch any {
+            cmd = (| ($channel_db.search(args[1]))[1] |);
+            return .channel_members(cmd, f);
+        } with {
+            return (traceback()[1])[2];
+        }
+    }
+    cd_keys = channel_dict.keys();
+    cd_values = channel_dict.values();
+    cur_channels = f ? ((($channel_db.database()).values()).slice(1)) : cd_values;
+    if (args) {
+        match_with = (| .get_setting("match-with", $programmer) |) || 'match_pattern;
+        match_pattern = (| (args[1])[1] |) || ((| .get_setting("match-default", $programmer) |) || "*");
+        cur_channels = filter f in (cur_channels) where ((f.to_string()).(match_with)(match_pattern) != 0);
+    }
+    if (!cur_channels)
+        return "No channels found.";
+    msg = [];
+    add = [];
+    for i in (cur_channels) {
+        alias = (| cd_keys[i in cd_values] |) || "";
+        db = (| $channel_db.search(tostr(i)) |);
+        if (type(db) == 'list) {
+            msg += [[(active_channels.contains(i)) ? "*" : " ", alias, tostr(db[1]), (db[7]) || "<no description>"]];
+            form = "%26r: %50l";
+            if (d) {
+                tmp = [form.format("Number of users", tostr(db[2])), form.format("Owner", (db[5]).name()), form.format("Managers", ((db[6]).mmap('namef, 'name)).to_english())];
+                if (db[3])
+                    tmp += [form.format("Join Lock", (db[3]).lock_name())];
+                if (db[4])
+                    tmp += [form.format("Leave Lock", (db[4]).lock_name())];
+                if (db[8])
+                    tmp += [form.format("Use Lock", (db[8]).lock_name())];
+                add += [tmp];
+            }
+        } else {
+            msg += [[(active_channels.contains(i)) ? "*" : " ", alias, "", "Channel not in database!"]];
+        }
+        refresh();
+    }
+    msg = (msg.transpose()).tabulate([["", ""], ["Alias", "-----"], ["Channel", "-------"], ["Description", "-----------"]]);
+    if (d)
+        msg = [msg[1], msg[2], @map i in [3 .. msg.length()] to ([msg[i]] + (add[i - 2])).sum()];
+    return [@msg, "   -----"];
 };
 
 protected method .delcom_cmd() {
@@ -368,16 +427,18 @@
     (> .perms(caller(), 'command) <);
     del_from_db = 1;
     msg = ("Channel alias " + args) + " deleted.";
+    if (!args)
+        return ("Syntax: " + cmd) + " <channel>";
     dict_var = channel_dict[args];
-    channel = (| tosym(((channel_dict[args]).to_string()).lowercase()) |) || 0;
+    channel = (| (((channel_dict[args]).to_string()).lowercase()).to_symbol() |) || 0;
     if (type(channel) == 'symbol) {
-        db = (| $channel_db.exact_match(channel) |) || 0;
+        db = (| $channel_db.search(channel) |) || 0;
         if (type(db) == 'list) {
             if ((type(db[4]) == 'frob) && ((!((db[4]).try(sender()))) && (!($sys.is_system(sender())))))
                 return "Channel leave locked, you can't leave it!";
         } else {
             del_from_db = 0;
-            msg = ("That channel didn't seem to be in the channel database.  Channel alias " + args) + " deleted.";
+            msg = ("That channel does not seem to be in the channel database.  Channel alias " + args) + " deleted.";
         }
     } else {
         return "You do not have that channel alias defined.";
@@ -388,8 +449,6 @@
         .channel_off(dict_var);
     channel_dict = channel_dict.del(args);
     return msg;
-    
-    // $#Edited: 16 Feb 97 22:36 $brad
 };
 
 protected method .describe_channel_cmd() {
@@ -400,70 +459,18 @@
     channel = (| tosym(channel.lowercase()) |) || 0;
     if (channel == 0)
         return "@desc-ch?annel <channel> as <description>";
-    db = (| $channel_db.exact_match(channel) |) || 0;
+    db = (| $channel_db.search(channel) |) || 0;
     if (db == 0)
         return "That channel does not exist.";
-    if ((!(sender() in (db[6]))) && (!($sys.is_system())))
+    if ((!(sender() in (db[6]))) && (!($sys.is_system(sender()))))
         return "You are not a manager for channel " + (db[1]);
     $channel_db.value_changed(channel, db.replace(7, desc));
     return "Description updated.";
-    
-    // $#Edited: 08 Dec 96 12:47 $brad
 };
 
 protected method .init_channel_ui() {
     channel_dict = #[];
     active_channels = #[];
-    
-    // $#Edited: 26 Aug 96 19:38 $user_chuck
-    // $#Edited: 27 Aug 96 17:45 $miro
-};
-
-protected method .list_channels_cmd() {
-    arg cmdstr, cmd, args;
-    var opts, f, d, cur_channels, cd_keys, cd_values, i, alias, db, active, msg, match_with, match_pattern, tmp, form, add;
-    
-    (> .perms(caller(), 'command) <);
-    opts = (args[2]).slice(1);
-    if ((f = (| "f?ull" in opts |)))
-        f = ((args[2])[f])[3];
-    if ((d = (| "d?etailed" in opts |)))
-        d = ((args[2])[d])[3];
-    cd_keys = channel_dict.keys();
-    cd_values = channel_dict.values();
-    cur_channels = f ? ((($channel_db.database()).values()).slice(1)) : cd_values;
-    match_with = (| .get_setting("match-with", $programmer) |) || 'match_pattern;
-    match_pattern = (| (args[1])[1] |) || ((| .get_setting("match-default", $programmer) |) || "*");
-    cur_channels = filter f in (cur_channels) where ((f.to_string()).(match_with)(match_pattern) != 0);
-    if (!cur_channels)
-        return "No channels found.";
-    msg = [];
-    add = [];
-    for i in (cur_channels) {
-        alias = (| cd_keys[i in cd_values] |) || "";
-        db = (| $channel_db.exact_match(tosym((i.to_string()).lowercase())) |);
-        if (type(db) == 'list) {
-            msg += [[(active_channels.contains(i)) ? "*" : " ", alias, tostr(db[1]), (db[7]) || "<no description>"]];
-            form = "%26r: %50l";
-            if (d) {
-                tmp = [form.format("Number of users", tostr(db[2])), form.format("Owner", (db[5]).name()), form.format("Managers", ((db[6]).mmap('namef, 'name)).to_english())];
-                if (db[3])
-                    tmp += [form.format("Join Lock", (db[3]).lock_name())];
-                if (db[4])
-                    tmp += [form.format("Leave Lock", (db[4]).lock_name())];
-                if (db[8])
-                    tmp += [form.format("Use Lock", (db[8]).lock_name())];
-                add += [tmp];
-            }
-        } else {
-            msg += [[(active_channels.contains(i)) ? "*" : " ", alias, "", "Channel not in database!"]];
-        }
-        refresh();
-    }
-    msg = (msg.transpose()).tabulate([["", ""], ["Alias", "-----"], ["Channel", "-------"], ["Description", "-----------"]]);
-    if (d)
-        msg = [msg[1], msg[2], @map i in [3 .. msg.length()] to ([msg[i]] + (add[i - 2])).sum()];
-    return [@msg, "   -----"];
 };
 
 public method .listen_channel() {
@@ -472,8 +479,6 @@
     if (active_channels.contains(channel))
         return 1;
     return 0;
-    
-    // $#Edited: 22 Aug 96 19:55 $user_chuck
 };
 
 public method .uninit_channel_ui() {
@@ -484,15 +489,13 @@
             .channel_off(c[2]);
         channel = (| tosym(((c[2]).to_string()).lowercase()) |) || 0;
         if (type(channel) == 'symbol) {
-            db = (| $channel_db.exact_match(channel) |) || 0;
+            db = (| $channel_db.search(channel) |) || 0;
             if (type(db) == 'list)
                 $channel_db.value_changed(channel, db.replace(2, (db[2]) - 1));
         }
     }
     active_channels = #[];
     channel_dict = #[];
-    
-    // $#Edited: 16 Feb 97 22:58 $brad
 };
 
 
diff -rwu src-3.0a7/climate.cdc ColdCore-3.0a9.02/src/climate.cdc
--- src-3.0a7/climate.cdc	Sat Aug  9 19:09:47 1997
+++ ColdCore-3.0a9.02/src/climate.cdc	Tue Aug 19 12:15:20 1997
@@ -7,14 +7,12 @@
 var $has_commands local = #[];
 var $has_commands remote = #[["@list-climate", [["@list-climate", "*", "@list-climate <this>", 'show_cmd, #[[1, ['this, []]]]]]], ["@setup", [["@setup", "* seasons * daylengths *", "@setup <this> seasons <any> daylengths <any>", 'setup_cmd, #[[1, ['this, []]], [3, ['any, []]], [5, ['any, []]]]]]], ["@add-weather", [["@add-weather", "* type * prob?abilities *", "@add-weather <this> type <descendant of $weather> prob?abilities <any>", 'add_weather_cmd, #[[1, ['this, []]], [3, ['descendant, [$weather]]], [5, ['any, []]]]]]], ["@del-weather", [["@del-weather", "* type *", "@del-weather <this> type <descendant of $weather>", 'del_weather_cmd, #[[1, ['this, []]], [3, ['descendant, [$weather]]]]]]]];
 var $has_commands shortcuts = #[];
*var $root child_index = '-' climate.cdc
 var $root created_on = 839895133;
 var $root flags = ['variables, 'methods, 'code, 'core];
 var $root help_node = $help_sys_climate;
 var $root inited = 1;
 var $root managed = [$climate];
 var $root manager = $climate;
-var $root owned = [$climate];
 
 public method ._probabilities() {
     arg from, season, fuzz;
@@ -27,8 +25,6 @@
     // normalize the list - the sum should be around 10,000
     sum = (dists.slice(2)).sum();
     return map i in (dists) to ([i[1], ((i[2]) * 10000) / sum]);
-    
-    // $#Edited: 07 Mar 97 15:28 $miro
 };
 
 public method .add_weather_cmd() {
@@ -41,8 +37,6 @@
         throw(~parse, "Wrong number of probabilities.");
     weathers = weathers.add(weather, probs);
     return ("Weather `" + (weather.name())) + "' added.";
-    
-    // $#Edited: 08 Feb 97 21:36 $miro
 };
 
 public method .advance() {
@@ -73,16 +67,12 @@
     vars = #[["weather", current.name()], ["weather_desc", current.prose()], ["season", season]];
     vars = vars.union(current.attribute_vars());
     return vars;
-    
-    // $#Edited: 15 Feb 97 19:22 $miro
 };
 
 public method .daylength() {
     arg season;
     
     return daylengths[season in seasons];
-    
-    // $#Edited: 15 Feb 97 19:22 $miro
 };
 
 public method .del_weather_cmd() {
@@ -94,8 +84,6 @@
         return "That weather doesn't belong to this climate.";
     weathers = weathers.del(weather);
     return ("Weather `" + (weather.name())) + "' removed.";
-    
-    // $#Edited: 08 Feb 97 21:36 $miro
 };
 
 public method .match_weather() {
@@ -107,8 +95,6 @@
     if ((out = find i in (weathers.keys()) where (weather_str.match_begin(i.name()))))
         return (weathers.keys())[out];
     throw(~keynf, "No such weather in this climate.");
-    
-    // $#Edited: 19 Feb 97 03:39 $miro
 };
 
 public method .setup_cmd() {
@@ -120,8 +106,6 @@
     daylengths = map i in (dls.explode()) to (toint(i));
     weathers = #[];
     return ("Seasons: " + (seasons.to_english())) + ". The weather list has been wiped.";
-    
-    // $#Edited: 08 Feb 97 21:36 $miro
 };
 
 public method .show_cmd() {
@@ -129,8 +113,6 @@
     var out, x, i;
     
     return ((map i in (weathers) to ([(i[1]).name(), @i[2]]).transpose()).tabulate([["Weather type", "------------"], @map i in (seasons) to ([i, "".pad(i.length(), "-")])])) + ["---"];
-    
-    // $#Edited: 08 Feb 97 21:36 $miro
 };
 
 
diff -rwu src-3.0a7/climate_frob.cdc ColdCore-3.0a9.02/src/climate_frob.cdc
--- src-3.0a7/climate_frob.cdc	Sat Aug  9 19:09:33 1997
+++ ColdCore-3.0a9.02/src/climate_frob.cdc	Tue Aug 19 12:15:36 1997
@@ -6,7 +6,6 @@
 var $root inited = 1;
 var $root managed = [$climate_frob];
 var $root manager = $climate_frob;
-var $root owned = [$climate_frob];
 
 public method ._distances() {
     arg self, from, season;
@@ -15,16 +14,12 @@
     w = self[3];
     refattr = (w[from])[1];
     return map i in (w.keys()) to ([i, ((map j in [1 .. (attr = (w[i])[1]).length()] to (abs((attr[j]) - (refattr[j]))).sum()) * 100) / (((w[i])[2])[season])]);
-    
-    // $#Edited: 30 Jul 96 21:57 $jenner
 };
 
 public method .add_weather() {
     arg self, name, attrs, probs, message, ch_messages;
     
     return (<this(), [self[1], self[2], (self[3]).add(name, [attrs, probs, message, ch_messages])]>);
-    
-    // $#Edited: 20 Jul 96 18:47 $jenner
 };
 
 public method .advance() {
@@ -38,24 +33,18 @@
     while ((i < (dists.length())) && (random(20 + ((dists[i])[2])) < fuzz))
         i++;
     return (dists[i])[1];
-    
-    // $#Edited: 30 Jul 96 22:15 $jenner
 };
 
 public method .del_weather() {
     arg self, weather;
     
     return (<this(), [self[1], self[2], (self[3]).del(weather)]>);
-    
-    // $#Edited: 20 Jul 96 18:47 $jenner
 };
 
 public method .new_with() {
     arg attributes, seasons;
     
     return (<this(), [attributes, seasons, #[]]>);
-    
-    // $#Edited: 20 Jul 96 18:47 $jenner
 };
 
 public method .read_new() {
@@ -124,8 +113,6 @@
         }
     }
     return out;
-    
-    // $#Edited: 20 Jul 96 18:47 $jenner
 };
 
 
diff -rwu src-3.0a7/climate_taobh_thiar.cdc ColdCore-3.0a9.02/src/climate_taobh_thiar.cdc
--- src-3.0a7/climate_taobh_thiar.cdc	Sat Aug  9 19:09:47 1997
+++ ColdCore-3.0a9.02/src/climate_taobh_thiar.cdc	Tue Aug 19 12:15:20 1997
@@ -12,6 +12,5 @@
 var $root inited = 1;
 var $root managed = [$climate_taobh_thiar];
 var $root manager = $climate_taobh_thiar;
-var $root owned = [$climate_taobh_thiar];
 
 
diff -rwu src-3.0a7/code_lib.cdc ColdCore-3.0a9.02/src/code_lib.cdc
--- src-3.0a7/code_lib.cdc	Sat Aug  9 19:09:29 1997
+++ ColdCore-3.0a9.02/src/code_lib.cdc	Tue Aug 19 12:15:16 1997
@@ -7,7 +7,6 @@
 var $root inited = 1;
 var $root managed = [$code_lib];
 var $root manager = $code_lib;
-var $root owned = [$code_lib];
 
 public method ._debug_listing() {
     arg list;
@@ -24,16 +23,32 @@
         } else {
             if (!t)
                 t = i[1];
-            j = strfmt("%6r  %l%l(%l)", (i[1]) - t, indent, ._show_ref(i), (toliteral(i[5]).match_pattern("[*]"))[1]);
+            j = strfmt("%6r  %l%l(%l)", (i[1]) - t, indent, (._show_ref(i)).replace("()", ""), (toliteral(i[5]).match_pattern("[*]"))[1]);
             out += [j];
             indent += "  ";
         }
         refresh();
     }
     return out;
+};
     
-    // $#Edited: 07 Feb 97 03:44 $miro
-    // $#Edited: 17 Mar 97 01:02 $brad
+public method ._do_method_href() {
+    arg method, object;
+    var mod_method, prefix, postfix, index;
+    
+    prefix = "";
+    postfix = "";
+    if ((method[1]) != ".") {
+        index = stridx(method, ".");
+        prefix = method.subrange(1, index);
+        method = method.subrange(index + 1);
+    } else {
+        prefix = ".";
+        method = method.subrange(2);
+    }
+    postfix = "(";
+    method = method.subrange(1, (method.length()) - 1);
+    return (((((((prefix + "<A HREF=\"/bin/method?target=") + object) + ".") + method) + "\">") + method) + "</A>") + postfix;
 };
 
 public method ._profile_listing() {
@@ -100,8 +115,6 @@
         refresh();
     }
     return out;
-    
-    // $#Edited: 22 Feb 97 03:06 $brad
 };
 
 public method ._trace_profile() {
@@ -152,6 +165,40 @@
     quotes += [quote];
 };
 
+public method .code_to_html() {
+    arg code, object;
+    var line, object_parse, results, obj_regexp, meth_regexp, chunk, word, method_parse, last_word, mode, chunk_out, meth_r2;
+    
+    obj_regexp = "\$[a-zA-Z0-9_]+";
+    meth_regexp = "((^)|[ (!])\.[a-zA-Z0-9_]+\(";
+    meth_r2 = "^(\.[a-zA-Z0-9_]+\()(.*)$";
+    results = [];
+    for line in (code) {
+        object_parse = line.global_regexp(obj_regexp);
+        last_word = 0;
+        chunk_out = "";
+        while (object_parse) {
+            [chunk, (word ?= 0), @object_parse] = object_parse;
+            if (last_word && (method_parse = chunk.regexp(meth_r2))) {
+                chunk_out += ._do_method_href(method_parse[1], last_word);
+                chunk = method_parse[2];
+            }
+            method_parse = chunk.global_regexp(meth_regexp);
+            mode = 0;
+            chunk_out += map chunk in (method_parse) to ((mode = !mode) ? chunk : (._do_method_href(chunk, object))).join("");
+            if (word) {
+                last_word = word;
+                if ((| $object_lib.to_dbref(word) |))
+                    chunk_out += ((("<A HREF=\"/bin/display?target=" + ((last_word = word).subrange(2))) + "\">") + word) + "</A>";
+                else
+                    chunk_out += word;
+            }
+        }
+        results += [chunk_out + (object_parse.join(""))];
+    }
+    return results;
+};
+
 public method .generate_debug_listing() {
     arg info, mode;
     
@@ -197,23 +244,44 @@
 };
 
 public method .parse_name() {
-    arg name;
-    var article, args, flag;
+    arg name, @def;
+    var article, match, flag, type, tmps, ignore;
     
     // used to parse $has_name names and name templates
-    [name, flag] = $parse_lib.getopt(name, [["u?nique"], ["p?roper"], ["n?ormal"]]);
+    [name, flag] = $parse_lib.opt(name, "u?nique", "p?roper", "n?ormal", "i?gnore");
     name = name.join();
-    flag = (| flag.last() |) || ["p?roper", "p", 1, ""];
+    if (flag) {
+        def = [@def, ["p?roper", "p", 1, ""]][1];
+        flag = (| flag.last() |) || def;
+        if ((flag[1]) == "i?gnore") {
+            article = 'prop;
+            ignore = 1;
+        } else {
     switch (flag[1]) {
         case "n?ormal":
-            article = 'normal;
+                    type = 'normal;
         case "u?nique":
+                    type = 'uniq;
+                case "p?roper":
+                    type = 'prop;
+            }
+        }
+    }
+    [name, @tmps] = name.split(" *, *");
+    if (!ignore) {
+        if ((match = name.regexp("^the +(.*)$"))) {
             article = 'uniq;
-        default:
+            name = match[1];
+        } else if ((match = name.regexp("^(a|an) +(.*)$"))) {
+            article = 'normal;
+            name = match[2];
+        } else {
             article = 'prop;
     }
-    name = name.split(" *, *");
-    return [[name[1], article], name.subrange(2)];
+        if (type && (article != type))
+            throw(~article, (("Conflicting name types " + type) + " and ") + article);
+    }
+    return [[name, article], tmps];
 };
 
 public method .point_to_line() {
@@ -379,50 +447,6 @@
         last = c;
     }
     return out;
-};
-
-public method .unparse_command() {
-    arg command;
-    var x, line;
-    
-    // command should be passed as a list, and can either be a command
-    // or shortcut.  This will return a string.
-    if ((command.length()) == 2)
-        return toliteral(command[1]);
-    line = "";
-    for x in (command[3]) {
-        if (type(x) == 'string)
-            line = (line + (line ? " " : "")) + x;
-        else
-            line = ((line + (line ? " " : "")) + "%") + tostr(x);
-    }
-    return ((("\"" + (command[1])) + "\" => \"") + line) + "\"";
-};
-
-public method .valid_email() {
-    arg email;
-    var host, user, ip, tmp;
-    
-    email = email.explode("@");
-    if ((email.length()) != 2)
-        return ['invalid, email, ""];
-    [user, host] = email;
-    
-    // if you want it to lookup the names, remove this return
-    // when .hostname() and .ip() don't block this is a viable option
-    return ['valid, user, host];
-    if (!host)
-        return ['invhostname, user, host];
-    if (toint(host[1])) {
-        tmp = $network.hostname(host);
-        if (tmp == "-1")
-            return ['invip, user, host];
-    } else {
-        tmp = $network.ip(host);
-        if (tmp == "-1")
-            return ['invhostname, user, host];
-    }
-    return ['valid, user, host];
 };
 
 public method .valid_message_id() {
diff -rwu src-3.0a7/command_aliases.cdc ColdCore-3.0a9.02/src/command_aliases.cdc
--- src-3.0a7/command_aliases.cdc	Sat Aug  9 19:09:30 1997
+++ ColdCore-3.0a9.02/src/command_aliases.cdc	Tue Aug 19 12:15:18 1997
@@ -7,7 +7,6 @@
 var $root inited = 1;
 var $root managed = [$command_aliases];
 var $root manager = $command_aliases;
-var $root owned = [$command_aliases];
 
 public method .add_command_alias() {
     arg alias, actual;
@@ -25,9 +24,6 @@
             command_aliases = command_aliases.setremove(a);
     }
     command_aliases += [[(relation[1])[1], (relation[2])[2]]];
-    
-    // $# Edited 18 Oct 1995 12:55 Lynx ($lynx)
-    // $#Edited: 30 Nov 96 21:22 $miro
 };
 
 public method .all_command_aliases() {
@@ -65,8 +61,6 @@
         }
     }
     throw(~aliasnf, ("alias `" + alias) + "' is not found");
-    
-    // $# Edited 18 Oct 1995 13:19 Lynx ($lynx)
 };
 
 root method .init_command_aliases() {
diff -rwu src-3.0a7/command_aliases_parser.cdc ColdCore-3.0a9.02/src/command_aliases_parser.cdc
--- src-3.0a7/command_aliases_parser.cdc	Sat Aug  9 19:09:46 1997
+++ ColdCore-3.0a9.02/src/command_aliases_parser.cdc	Tue Aug 19 12:15:36 1997
@@ -6,7 +6,6 @@
 var $root inited = 1;
 var $root managed = [$command_aliases_parser];
 var $root manager = $command_aliases_parser;
-var $root owned = [$command_aliases_parser];
 var $root trusted = [];
 var $user_parsers priority = 750;
 
diff -rwu src-3.0a7/command_cache.cdc ColdCore-3.0a9.02/src/command_cache.cdc
--- src-3.0a7/command_cache.cdc	Sat Aug  9 19:09:28 1997
+++ ColdCore-3.0a9.02/src/command_cache.cdc	Tue Aug 19 12:15:17 1997
@@ -6,14 +6,12 @@
 var $command_cache remote_cache = 0;
 var $command_cache shortcut_cache = 0;
 var $has_commands shortcuts = #[];
*var $root child_index = '-' command_cache.cdc
 var $root created_on = 796605573;
 var $root fertile = 1;
 var $root flags = ['methods, 'code, 'fertile, 'variables, 'core];
 var $root inited = 1;
 var $root managed = [$command_cache];
 var $root manager = $command_cache;
-var $root owned = [$command_cache];
 
 public method .add_command_interface() {
     arg interface;
@@ -35,8 +33,6 @@
                 .add_to_local_cache(part[1]);
         }
     }
-    
-    // $#Edited: 06 Jan 96 13:18 Lynx ($lynx)
 };
 
 public method .add_object_to_remote_cache() {
@@ -112,6 +108,17 @@
     }
 };
 
+root method .core_command_cache() {
+    if (this() == definer()) {
+        interfaces = (local_cache = (remote_cache = (shortcut_cache = 0)));
+    } else {
+        (| clear_var('interfaces) |);
+        (| clear_var('local_cache) |);
+        (| clear_var('remote_cache) |);
+        (| clear_var('shortcut_cache) |);
+    }
+};
+
 public method .del_command_interface() {
     arg interface;
     
@@ -144,8 +151,6 @@
             }
         }
     }
-    
-    // $#Edited: 30 Nov 96 20:00 $miro
 };
 
 public method .del_object_from_remote_cache() {
@@ -172,16 +177,12 @@
             matches = matches.union(match);
     }
     return matches;
-    
-    // $#Edited: 08 Jan 96 18:47 Lynx ($lynx)
 };
 
 public method .find_in_local_cache() {
     arg cmd;
     
     return (> local_cache[cmd] <);
-    
-    // $#Edited: 08 Jan 96 18:48 Lynx ($lynx)
 };
 
 protected method .find_in_local_caches() {
@@ -200,8 +201,6 @@
     arg cmd;
     
     return (> remote_cache[cmd] <);
-    
-    // $#Edited: 08 Jan 96 18:48 Lynx ($lynx)
 };
 
 public method .find_in_remote_caches() {
@@ -214,20 +213,14 @@
             matches = matches.union(match);
     }
     return matches;
-    
-    // $#Edited: 08 Jan 96 18:51 Lynx ($lynx)
 };
 
 public method .interfaces() {
     return interfaces || [];
-    
-    // $#Edited: 03 Dec 96 12:49 $brandon
 };
 
 public method .is_command_cache() {
     return 'command_cache in (.flags());
-    
-    // $#Edited: 06 Jan 96 13:07 Lynx ($lynx)
 };
 
 public method .local_cache() {
@@ -361,8 +354,6 @@
         (> .add_flag('command_cache) <);
     else
         (> .del_flag('command_cache) <);
-    
-    // $#Edited: 06 Jan 96 13:07 Lynx ($lynx)
 };
 
 public method .shortcut_cache() {
diff -rwu src-3.0a7/command_lib.cdc ColdCore-3.0a9.02/src/command_lib.cdc
--- src-3.0a7/command_lib.cdc	Sat Aug  9 19:09:29 1997
+++ ColdCore-3.0a9.02/src/command_lib.cdc	Tue Aug 19 12:15:16 1997
@@ -7,7 +7,6 @@
 var $root inited = 1;
 var $root managed = [$command_lib];
 var $root manager = $command_lib;
-var $root owned = [$command_lib];
 
 public method ._parse_option_templates() {
     arg opt;
diff -rwu src-3.0a7/command_parser.cdc ColdCore-3.0a9.02/src/command_parser.cdc
--- src-3.0a7/command_parser.cdc	Sat Aug  9 19:09:46 1997
+++ ColdCore-3.0a9.02/src/command_parser.cdc	Tue Aug 19 12:15:36 1997
@@ -1,13 +1,11 @@
 
 new object $command_parser: $user_parsers;
 
*var $root child_index = '-' command_parser.cdc
 var $root created_on = 796680318;
 var $root flags = ['methods, 'code, 'core, 'variables];
 var $root inited = 1;
 var $root managed = [$command_parser];
 var $root manager = $command_parser;
-var $root owned = [$command_parser];
 
 public method ._local() {
     arg user, nmatch, match, template, method, info;
@@ -100,12 +98,12 @@
         case 'any:
             return str;
         case 'any_opt:
-            args = $parse_lib.getopt(str, argargs);
+            args = $parse_lib.opt(str, @argargs);
             return args;
         case 'object:
             return (> me.match_environment(str) <);
         case 'object_opt:
-            args = $parse_lib.getopt(str, argargs);
+            args = $parse_lib.opt(str, @argargs);
             if (!(args[1]))
                 throw(~syntax, "No reference specified for command \"");
             obj = (> me.match_environment((args[1])[1]) <);
@@ -113,7 +111,7 @@
         case 'objref:
             return (> $parse_lib.ref(str, me) <);
         case 'objref_opt:
-            args = $parse_lib.getopt(str, argargs);
+            args = $parse_lib.opt(str, @argargs);
             if (!(args[1]))
                 throw(~syntax, "No reference specified for command \"");
             obj = (> $parse_lib.ref((args[1])[1], me) <);
@@ -125,7 +123,7 @@
                 return me;
             return (| $user_db.search(str) |) || throw(~match, ("Unable to find user " + str) + ".");
         case 'user_opt:
-            args = $parse_lib.getopt(str, argargs);
+            args = $parse_lib.opt(str, @argargs);
             if (!(args[1]))
                 throw(~syntax, "Nobody specified for command \"");
             if (str == "me")
@@ -134,7 +132,7 @@
         case 'number:
             return (> str.to_number() <);
         case 'number_opt:
-            args = $parse_lib.getopt(str, argargs);
+            args = $parse_lib.opt(str, @argargs);
             if (!(args[1]))
                 throw(~syntax, "No number specified for command \"");
             return [(> str.to_number() <), args[2]];
@@ -145,7 +143,7 @@
                 throw(~parse, strfmt("You cannot %s %s because it is not %s!", cmd, obj.name(), anc.name()));
             return obj;
         c

Showing the first 100 KB of 1009.8 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571