         var key :String = "c." + command;
         if (msg.exists(key)) {
             var tokens :Array = msg.get(key).split(/\s+/);
-            for each (var cmd :Object in tokens) {
+            for each (var cmd :String in tokens) {
                 _handlers.put(cmd, handler);
             }
         } else {

    protected var _chatterObservers :ObserverList = new ObserverList();

    /** Registered chat command handlers. */
    protected static const _handlers :HashMap = new HashMap();

    /** A history of chat commands. */
    protected static const _history :Array = new Array();


    /** A mapping from auxiliary chat objects to the types under which
     * they are registered. */
    protected var _auxes :Hashtable = new Hashtable();

    /** Validator of who may be added to the chatters list. */
    protected var _chatterValidator :ChatterValidator;
