]> git.lizzy.rs Git - luairc.git/commitdiff
use my local get_ip program to provide an appropriate ip address for dcc transfer...
authorjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 22:14:44 +0000 (17:14 -0500)
committerjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 22:14:44 +0000 (17:14 -0500)
test/test.lua

index eb40efaa65b94e25539ae852039ae3ecac89d30b..b3e48691431b01f88634a59535f80d21833559e0 100644 (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(), " "))