Explorar el Código

update

master
Emil Williams hace 3 meses
padre
commit
f0e79e35df
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 5432DB986FDBCF8A
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. +6
    -5
      client/moontalk.rb

+ 6
- 5
client/moontalk.rb Ver fichero

@@ -60,14 +60,15 @@ end

def main
begin
h = { "-name" => 1, "-nick" => 1, "-serv" => 2, "-port" => 3 }

ARGV.each_with_index do |element,index|
if element == "-name"
case h[element]
when h["-name"]
@name = ARGV[index + 1]
end
if element == "-serv"
when h["-serv"]
@serv = ARGV[index + 1]
end
if element == "-port"
when h["-port"]
@port = ARGV[index + 1].to_i
end
end


Cargando…
Cancelar
Guardar