znmud-0.0.1/benchmark/
znmud-0.0.1/cmd/
znmud-0.0.1/cmd/emotes/
znmud-0.0.1/cmd/objects/
znmud-0.0.1/cmd/tiny/
znmud-0.0.1/doc/
znmud-0.0.1/farts/
znmud-0.0.1/lib/
znmud-0.0.1/lib/combat/
znmud-0.0.1/lib/core/bodytypes/
znmud-0.0.1/lib/engine/
znmud-0.0.1/lib/farts/
znmud-0.0.1/logs/
#
# file::    cmd_debugmode.rb

# This source code copyright (C) 2009 Craig Smith
# All rights reserved.
#
# Released under the terms of the TeensyMUD Public License
# See LICENSE file for additional information.
#

module Cmd

  bindtextdomain("cmd")

  # The enables extra debug info for builders/admins
  def cmd_debugmode(args)
    debugmode = get_stat(:debugmode)
    debugmode ? debugmode = false : debugmode = true
    msg = _("Toggled debug mode ")
    if debugmode
	msg << _("[COLOR Magenta]ON[/COLOR]")
    else
	msg << _("[COLOR Magenta]OFF[/COLOR]")
    end
    msg+"\n"
    set_stat(:debugmode, debugmode)
    sendto(msg)
  end

end