CoralMUD-0.15/
CoralMUD-0.15/core/
CoralMUD-0.15/data/
CoralMUD-0.15/data/areas/
CoralMUD-0.15/data/help/
CoralMUD-0.15/data/players/
CoralMUD-0.15/lib/automap/
CoralMUD-0.15/lib/items/
class Player
  def cmd_igame command_table_entry, arg
    if arg == nil || arg.length == 0
      ### Toggle icode channel
      if (found = @channel_flags[:icode]) == nil
        text_to_player "You will no longer observe the igame channel." + ENDL
        ### Currently channel is on. Turn it off with user restriction.
        @channel_flags[:igame] = :channel_user_off
      else
        if found == :channel_mute_off
          text_to_player "You are not allowed to observe the igame channel." + ENDL
        else
          ### Currently the channel is off. Remove all restrictions.
          text_to_player "You can now observe the igame channel." + ENDL
          @channel_flags.delete(:igame)
        end
      end
    else
      $imclock.synchronize do
        $imcclient.channel_send("#{name.capitalize}", "Server02:igame", arg)
      end
    end
  end
end