From: Andrew C. <ac...@us...> - 2004-01-17 01:20:57
|
Update of /cvsroot/planeshift/planeshift/src/client In directory sc8-pr-cvs1:/tmp/cvs-serv29086/src/client Modified Files: cmdadmin.cpp modehandler.cpp Log Message: Added /mute command from Hybrasyl and fixed a couple of things with the new iLight API Index: cmdadmin.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/cmdadmin.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** cmdadmin.cpp 22 Dec 2003 07:34:56 -0000 1.18 --- cmdadmin.cpp 17 Jan 2004 01:20:54 -0000 1.19 *************** *** 13,16 **** --- 13,21 ---- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * Modified + * 01/12/04 + * By Hybrasyl + * Added /mute to adminstrator level functions. + * */ #include <config.h> *************** *** 55,58 **** --- 60,64 ---- cmdsource->Unsubscribe("/crystal",this); cmdsource->Unsubscribe("/kick",this); + cmdsource->Unsubscribe("/mute",this); cmdsource->Unsubscribe("/teleport_to",this); cmdsource->Unsubscribe("/slide",this); *************** *** 108,111 **** --- 114,118 ---- cmdsource->Unsubscribe("/crystal",this); cmdsource->Unsubscribe("/kick",this); + cmdsource->Unsubscribe("/mute",this); case 9: break; *************** *** 121,124 **** --- 128,132 ---- cmdsource->Subscribe("/crystal", paws->Translate(" Makes a new entry in the Crystal Hunt database at your current location."),CmdHandler::VISIBLE_TO_USER,this); cmdsource->Subscribe("/kick", paws->Translate("<player name> Kicks the named player off of the server."),CmdHandler::VISIBLE_TO_USER,this); + cmdsource->Subscribe("/mute", paws->Translate("<player name> Mutes the named player until they log back in to this server."),CmdHandler::VISIBLE_TO_USER,this); case 8: case 7: Index: modehandler.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/modehandler.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** modehandler.cpp 16 Jan 2004 11:20:42 -0000 1.52 --- modehandler.cpp 17 Jan 2004 01:20:54 -0000 1.53 *************** *** 570,574 **** if (light) { ! if (!light->IsDynamic() ) { Warning2(LOG_WEATHER, "Light '%s' is not marked as <dynamic /> in the world map!", (const char *)setting->object); --- 570,574 ---- if (light) { ! if ( light->GetDynamicType() == CS_LIGHT_DYNAMICTYPE_DYNAMIC ) { Warning2(LOG_WEATHER, "Light '%s' is not marked as <dynamic /> in the world map!", (const char *)setting->object); |