Commit Graph

101 Commits

Author SHA1 Message Date
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 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
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 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
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
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 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 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 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
Michael Bayne e6dc5c38d7 The basis for logging all recent chat on the server. Now I have to make
every type of chat object known to man capable of reporting who's
listening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:47:16 +00:00
Ray Greenwell 5f515133c3 Chat revamp, phase 2.
- FeedbackMessage has been subsumed into SystemMessage, which now has three
  modes: INFO, FEEDBACK, or ATTENTION.
- Cleaned up methods for sending those system messages.
  - on the server: sendInfo(), sendFeedback(), sendAttention()
  - on the client: displayInfo(), displayFeedback(), displayAttention().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 02:50:19 +00:00
Ray Greenwell 674523b365 Tell feedback message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 23:46:10 +00:00
Ray Greenwell d3f3995cb7 Allow an optional ResultListener to be passed into requestTell that will
tell us whether or not the tell succeeded.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 23:36:18 +00:00
Ray Greenwell 40afe3cb94 Chat revamp, phase 1.
- Repackaged crowd/chat
- All messages are delivered to the client via ChatMessage messages,
  including tells.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 21:41:33 +00:00
Ray Greenwell 758d0a4456 Give mute feedback
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2390 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 02:49:43 +00:00
Michael Bayne 19354e55af Added shout chat mode.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2352 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 02:53:05 +00:00
Michael Bayne 3ac861d72b Better toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2351 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 02:52:53 +00:00
Michael Bayne a79b771411 Formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2350 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 02:52:41 +00:00
Ray Greenwell d53b707e4f Can init the mutelist with a String[] of muted players.
Can get a String[] of the currently muted players.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2312 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-20 00:46:34 +00:00
Walter Korman ccb5eb4b92 Added provisions for registering a speak observer that will be notified of
all speak and system speak messages.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2212 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-22 23:14:44 +00:00
Walter Korman 14081c752b Added string translations for the various chat modes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2211 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-22 23:14:11 +00:00
Michael Bayne 14780e6332 No need to go through handleSystemMessage(). It didn't do much.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-21 01:08:36 +00:00
Michael Bayne 74ebb4a21e Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2201 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-21 01:08:10 +00:00
Michael Bayne 8c3d8048a0 Need to taint username.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-06 00:24:32 +00:00
Walter Korman ce8fe382a3 Use observer lists, and remove code to disallow adding observers more than
once since the observer list now takes care of that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2062 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-12 23:54:27 +00:00
Ray Greenwell b89f5dc419 Log a stack trace (and refuse to do it) if someone tries to
register the same chat display twice.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-13 01:29:41 +00:00
Ray Greenwell 59fbad181c the 'force' argument to ChatDisplay.clear() is now implied.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1927 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-08 07:28:23 +00:00
Ray Greenwell 01219cd341 Added ChatterValidator interface to validate usernames before they can
be added to the 'chatters' list.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1889 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 20:06:15 +00:00
Michael Bayne 383d500f4b Created LACK_ACCESS error code; use it for chat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1879 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-01 01:01:27 +00:00
Michael Bayne 8f1bfa66ff Freak out when they don't have access. Not when they do.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1878 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-01 00:57:50 +00:00
Michael Bayne dd4b1c69c3 Added broadcast chat mechanism.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1875 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-31 23:27:16 +00:00
Ray Greenwell c919832043 we actually want to report disconnect time with a granularity of SECOND
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1866 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 01:56:17 +00:00