mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -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(...)
|
local args, options = shell.parse(...)
|
||||||
if #args < 1 then
|
if #args < 1 then
|
||||||
print("Usage: irc <nickname> [server:port]")
|
print("Usage: irc <nickname> [server[:port]]")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local nick = args[1]
|
local nick = args[1]
|
||||||
local host = args[2] or "irc.esper.net:6667"
|
local host = args[2] or "irc.esper.net:6667"
|
||||||
|
|
||||||
|
if not host:find(":") then
|
||||||
|
host = host .. ":6667"
|
||||||
|
end
|
||||||
|
|
||||||
-- try to connect to server.
|
-- try to connect to server.
|
||||||
local sock, reason = internet.open(host)
|
local sock, reason = internet.open(host)
|
||||||
if not sock then
|
if not sock then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user