From ba9e8276ce8cf92e382b1e44b4aaf91d821de5fd Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 24 Nov 2003 17:53:11 +0000 Subject: [PATCH] Let's make that key public. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2867 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/crowd/chat/client/ChatDirector.java | 4 ++-- src/java/com/threerings/crowd/chat/data/ChatCodes.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/crowd/chat/client/ChatDirector.java b/src/java/com/threerings/crowd/chat/client/ChatDirector.java index 91d4a4943..d8ec45ed7 100644 --- a/src/java/com/threerings/crowd/chat/client/ChatDirector.java +++ b/src/java/com/threerings/crowd/chat/client/ChatDirector.java @@ -1,5 +1,5 @@ // -// $Id: ChatDirector.java,v 1.54 2003/11/24 17:52:15 mdb Exp $ +// $Id: ChatDirector.java,v 1.55 2003/11/24 17:53:11 mdb Exp $ package com.threerings.crowd.chat.client; @@ -383,7 +383,7 @@ public class ChatDirector extends BasicDirector if (idletime > 0L) { // adjust by the time it took them to become idle idletime += _ctx.getConfig().getValue( - "narya.chat.idle_time", DEFAULT_IDLE_TIME); + IDLE_TIME_KEY, DEFAULT_IDLE_TIME); String msg = MessageBundle.compose( "m.recipient_idle", MessageBundle.taint(target), TimeUtil.getTimeOrderString(idletime, TimeUtil.MINUTE)); diff --git a/src/java/com/threerings/crowd/chat/data/ChatCodes.java b/src/java/com/threerings/crowd/chat/data/ChatCodes.java index 53ac046de..61ae6f136 100644 --- a/src/java/com/threerings/crowd/chat/data/ChatCodes.java +++ b/src/java/com/threerings/crowd/chat/data/ChatCodes.java @@ -1,5 +1,5 @@ // -// $Id: ChatCodes.java,v 1.17 2003/11/24 17:52:15 mdb Exp $ +// $Id: ChatCodes.java,v 1.18 2003/11/24 17:53:11 mdb Exp $ package com.threerings.crowd.chat.data; @@ -13,6 +13,9 @@ public interface ChatCodes extends InvocationCodes /** The message identifier for a chat notification message. */ public static final String CHAT_NOTIFICATION = "chat"; + /** The configuration key for idle time. */ + public static final String IDLE_TIME_KEY = "narya.chat.idle_time"; + /** The default time after which a player is assumed idle. */ public static final long DEFAULT_IDLE_TIME = 3 * 60 * 1000L;