mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Merge branch 'patch-1' of https://github.com/Ivoah/OpenComputers into master-MC1.7.10
This commit is contained in:
commit
b85695e800
@ -17,13 +17,17 @@ local text = require("text")
|
||||
|
||||
local args, options = shell.parse(...)
|
||||
if #args < 1 then
|
||||
print("Usage: irc <nickname> [server:port]")
|
||||
print("Usage: irc <nickname> [server[:port]]")
|
||||
return
|
||||
end
|
||||
|
||||
local nick = args[1]
|
||||
local host = args[2] or "irc.esper.net:6667"
|
||||
|
||||
if not host:find(":") then
|
||||
host = host .. ":6667"
|
||||
end
|
||||
|
||||
-- try to connect to server.
|
||||
local sock, reason = internet.open(host)
|
||||
if not sock then
|
||||
|
Loading…
x
Reference in New Issue
Block a user