From 66d4b88e39b710b836bb40d34abefc5ade0a3462 Mon Sep 17 00:00:00 2001 From: Shawn M Moore Date: Tue, 11 Sep 2007 22:39:13 -0500 Subject: Move channel and network definitions to the top so people can see them --- test/luabot.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/luabot.lua b/test/luabot.lua index 6d94350..4563c49 100644 --- a/test/luabot.lua +++ b/test/luabot.lua @@ -4,6 +4,8 @@ local irc = require 'irc' irc.DEBUG = true local nick = "luabot" +local channel = "#doytest" +local network = "irc.freenode.org" local envs = {} @@ -77,7 +79,7 @@ local commands = { } irc.register_callback("connect", function() - irc.join("#doytest") + irc.join(channel) end) irc.register_callback("channel_msg", function(channel, from, message) @@ -107,4 +109,4 @@ irc.register_callback("nick_change", function(from, old_nick) end end) -irc.connect{network = "irc.freenode.net", nick = nick} +irc.connect{network = network, nick = nick} -- cgit v1.2.3