diff --git a/src/main/resources/assets/opencomputers/loot/OpenIRC/irc.lua b/src/main/resources/assets/opencomputers/loot/OpenIRC/irc.lua index 9e0d7bee3..b0a87ea99 100644 --- a/src/main/resources/assets/opencomputers/loot/OpenIRC/irc.lua +++ b/src/main/resources/assets/opencomputers/loot/OpenIRC/irc.lua @@ -17,13 +17,17 @@ local text = require("text") local args, options = shell.parse(...) if #args < 1 then - print("Usage: irc [server:port]") + print("Usage: irc [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