瀏覽代碼

update

master
Emil Williams 3 月之前
父節點
當前提交
f0e79e35df
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 5432DB986FDBCF8A
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. +6
    -5
      client/moontalk.rb

+ 6
- 5
client/moontalk.rb 查看文件

@@ -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


Loading…
取消
儲存