use my local get_ip program to provide an appropriate ip address for dcc transfer testing

master
jluehrs2 2007-09-04 17:14:44 -05:00
parent 88ace15010
commit 0d03aed0b7
1 changed files with 5 additions and 0 deletions

View File

@ -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(), " "))