Allow the currently registered ChatFilters to be retrieved.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4904 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -143,6 +143,18 @@ public class ChatDirector extends BasicDirector
|
|||||||
_filters.remove(filter);
|
_filters.remove(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all registered chat Filters.
|
||||||
|
*/
|
||||||
|
public function getChatFilters () :Array
|
||||||
|
{
|
||||||
|
var filters :Array = [];
|
||||||
|
_filters.apply(function (observer :ChatFilter) :void {
|
||||||
|
filters.push(observer);
|
||||||
|
});
|
||||||
|
return filters;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an observer that watches the chatters list, and updates it immediately.
|
* Adds an observer that watches the chatters list, and updates it immediately.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user