aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.lua')
-rw-r--r--test/test.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua
index eb40efa..b3e4869 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -104,6 +104,11 @@ local dcc = require "irc.dcc"
irc.DEBUG = true
+local ip_prog = io.popen("get_ip")
+local ip = ip_prog:read()
+ip_prog:close()
+irc.set_ip(ip)
+
local function print_state()
for chan in irc.channels() do
print(chan..": Channel ops: "..table.concat(chan:ops(), " "))