Commit Graph

272 Commits

Author SHA1 Message Date
Michael Bayne ffc1552225 Clear out idle state when client logs off in case their client object
remains around until their next session.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3129 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-01 22:04:18 +00:00
Michael Bayne 1f8c4578b7 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne a2ae7d499d Track more objects!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:05:04 +00:00
Ray Greenwell 3d47f13e5a Let's not clear the mutelist when a player logs off, since the mutelist
is only populated when the MuteDirector is created, not when someone logs on.
The mutelist is client-side only, and in fact is shared between all users of
a machine. This is something that we should consider fixing now that
1 billion chinese are playing the game in web cafes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3088 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-19 20:59:06 +00:00
Michael Bayne 62fed218c3 Make the PlaceConfig available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3079 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-16 22:57:44 +00:00
Michael Bayne 031331a5c3 Regenerated from service definitions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-22 13:57:44 +00:00
Ray Greenwell 03ca013e8d Allow system broadcasts to be INFO or ATTENTION level.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3032 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-17 18:28:58 +00:00
Ray Greenwell 407d4ac3b1 Added a static broadcast().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3028 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-15 22:03:51 +00:00
Ray Greenwell 62b3ca4ba7 Apparently the proper way to remove a range from a List is to call
subList(range).clear();


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3012 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-25 21:58:14 +00:00
Michael Bayne 32dee3cbaf 405 modified source files and 17,367 lines of diffs later we now enforce
more discipline when handling names in our code base. Any user entered
name should find its way into a Name object as soon as it comes out of a
text field or whatnot, and stay that way until it makes its way into a
text field or into a database record (for which String objects are vastly
simpler because of JORA magic).

Dear God, let me never again make a change this large for the rest of my
mortal life.

Unfortunately, this means we have to keep an eye out for funny business
pretty much everywhere. However, since we will absolutely want to test
market stalls and so forth on Azure, we'll have an opportunity to iron out
any funny business that might fall under the radar during our internal
testing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 11:29:19 +00:00
Michael Bayne 9ccff79f52 Regenerated.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:51:51 +00:00
Michael Bayne ef748636e2 Various Eclipse suggested bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:41:47 +00:00
Ray Greenwell bfe9cbba04 Changed the variable named "enum", since that's a keyword in jdk 1.5
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:52:33 +00:00
Ray Greenwell ca89a3c122 Demoted logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2935 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 17:43:12 +00:00
Michael Bayne 06230b3d47 Note and warn rather than choke.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2899 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-09 21:01:43 +00:00
Michael Bayne 8de11561ac Out with XLATE_MODES which Narya doesn't use; and make sure it's a default
message received on the user object that we consider to be a tell.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2889 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-03 23:38:45 +00:00
Michael Bayne ba9e8276ce Let's make that key public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2867 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 17:53:11 +00:00
Michael Bayne 6f336305f8 Obtain the idle time from our client config.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2866 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 17:52:15 +00:00
Michael Bayne b032f51b84 Refuse moves to invalid zones, scenes or places.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-03 20:41:32 +00:00
Michael Bayne 44f2a352cc Removed vestigal business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2811 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-24 21:39:42 +00:00
Michael Bayne 0d77519001 Let's allow auto-responses to actually be turned off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-23 23:03:34 +00:00
Michael Bayne 8c219530d1 More debug log wrapping.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2804 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-22 23:59:39 +00:00
Ray Greenwell e15e54b7f6 Be sure to filter away messages as well, because they nastily show up as
feedback, and not a user type of chat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2800 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-22 19:15:12 +00:00
Michael Bayne 90816435f3 If we receive a tell and have an auto-response message configured, report
what we said to the teller so that we remember that we have the
auto-response active.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-18 18:13:28 +00:00
Michael Bayne 6add22f5d7 Refactored /tell idle auto-response; added support for configuring an
away/busy auto-response message.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2797 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-18 17:53:48 +00:00
Ray Greenwell e876090b93 Cluster chat is still a special case: make a special call to the filter
method of the chat director prior to sending cluster chat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2796 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-16 21:26:15 +00:00
Ray Greenwell ac52342b17 - Refactored ChatValidator into ChatFilter, which can invalidate a message
by returning null instead of a filtered version.
- Changed the MuteDirector to implement ChatFilter.
- ChatDirector no longer needs a reference to the MuteDirector because
  the outgoing mute-checking is now handled by the standard filtering code.
- Fixed a bug introduced by Walter back in December that caused the
  MuteDirector to be _removed_ as a validator the first time you try to
  /tell to a player that you've muted. How we never detected this, I'll
  stay awake at night wondering...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2795 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-15 21:11:40 +00:00
Michael Bayne cd6f38ee3d More Big Brother facilities: observers can be registered to be notified
every time a particular person hears another person say something.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-11 16:36:39 +00:00
Michael Bayne 0812c3d8a1 Made the code for updating a player's occupant info more general purpose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-11 03:20:06 +00:00
Michael Bayne a34e6a7fd8 Only log when we unload the place, not when it becomes empty.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-20 01:54:57 +00:00
Michael Bayne 4a302495d5 Unload scene managers (and all their associated business) after they've
been unoccupied for five minutes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2772 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-15 18:40:48 +00:00
Michael Bayne 206dd46e68 This too can now be related to the land of debug messages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-09 04:58:25 +00:00
Michael Bayne ff12758dc0 That can be a debug message for surely-sure-opolis.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-09 04:57:41 +00:00
Michael Bayne 3d5ab0c79a The #1 most popular Narya log message gets the can. No need to hear about
this 50,000 times a day.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-09 04:56:35 +00:00
Eric Lundberg 957faac149 Slap the CommunicationAuthorizer code in such that we block all user
communication if the user is not authorized.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2715 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-18 01:58:38 +00:00
Eric Lundberg c2a5e8966b Initial checkin of ye ole' pluggable interface for authorizing player
communication.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2714 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-18 01:54:51 +00:00
Ray Greenwell 829f3ad0eb Start transactions outside of the try-finally clause so that if there
is a problem with starting a transaction, we don't get an exception
for failing to commit the transaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2712 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-16 18:03:30 +00:00
Ray Greenwell 2726f6a29d Slight optimization to chat history pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2710 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-14 23:46:03 +00:00
Michael Bayne e85e6ad617 Catch our funny choking getOccupantInfo and log the failure prior to
allowing things to get out of hand. Since getOccupantInfo may normally
return null, doing so in our strange failure case will not cause further
freakout.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 00:47:33 +00:00
Michael Bayne 993c79e9d2 Added interface method documentation, rejiggered formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2689 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:53:02 +00:00
Eric Lundberg 00286b608e Added interface to all other packages to plug into the chat provider and
provide an auto response to a tell.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2688 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:50:18 +00:00
Michael Bayne 78cf95ed49 Some minor reformatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-26 19:57:24 +00:00
Ray Greenwell ec6cf00d6f Ask the place object if it needs to be broadcasted on before doing so.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-25 17:17:41 +00:00
Michael Bayne faee2e4088 Whoops, we add new history messages to the end, so start pruning from the
beginning. To do this more efficiently, we end up having to do some
jockeying.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2679 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 05:19:57 +00:00
Michael Bayne aacca4ca02 Only log if we have a user message but no speak object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 06:23:41 +00:00
Eric Lundberg b9271233ac Har, lets be scanning down, not up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2658 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:55:42 +00:00
Michael Bayne 3701cef1d7 Only track UserMessage since we only care to log things other players
said; prune any big history when a new message is noted.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2657 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:18:27 +00:00
Michael Bayne 1523629ef6 Provide the option to deliver listener body oids or usernames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2656 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:59:24 +00:00
Michael Bayne f1ac86936e Be speaker aware. Big brother loves us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:40 +00:00
Michael Bayne 61168c737c Don't double note UserMessage instead specifically note tells() which is
the only circumstance where we're not getting sent our own message back to
us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:19 +00:00