The documentation says that the validator is optional, make it so.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3236 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2004-11-24 23:59:39 +00:00
parent e6b9ee5afe
commit 284494d296
@@ -1,5 +1,5 @@
// //
// $Id: SpeakProvider.java,v 1.22 2004/08/27 02:12:32 mdb Exp $ // $Id$
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -135,7 +135,8 @@ public class SpeakProvider
// rather than as a mode for a user message so that we don't // rather than as a mode for a user message so that we don't
// have to do this validation here. Or not. // have to do this validation here. Or not.
if ((mode == BROADCAST_MODE) || if ((mode == BROADCAST_MODE) ||
!_validator.isValidSpeaker(_speakObj, caller)) { (_validator != null &&
!_validator.isValidSpeaker(_speakObj, caller))) {
Log.warning("Refusing invalid speak request " + Log.warning("Refusing invalid speak request " +
"[caller=" + caller.who() + "[caller=" + caller.who() +
", speakObj=" + _speakObj.which() + ", speakObj=" + _speakObj.which() +