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
This commit is contained in:
Michael Bayne
2003-11-24 17:52:15 +00:00
parent cb9ed7030d
commit 6f336305f8
2 changed files with 8 additions and 2 deletions
@@ -1,5 +1,5 @@
//
// $Id: ChatDirector.java,v 1.53 2003/09/23 23:03:34 mdb Exp $
// $Id: ChatDirector.java,v 1.54 2003/11/24 17:52:15 mdb Exp $
package com.threerings.crowd.chat.client;
@@ -381,6 +381,9 @@ public class ChatDirector extends BasicDirector
// if they are idle, report that
if (idletime > 0L) {
// adjust by the time it took them to become idle
idletime += _ctx.getConfig().getValue(
"narya.chat.idle_time", DEFAULT_IDLE_TIME);
String msg = MessageBundle.compose(
"m.recipient_idle", MessageBundle.taint(target),
TimeUtil.getTimeOrderString(idletime, TimeUtil.MINUTE));