aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn M Moore <sartak@gmail.com>2007-09-11 22:39:13 -0500
committerShawn M Moore <sartak@gmail.com>2007-09-11 22:39:13 -0500
commit66d4b88e39b710b836bb40d34abefc5ade0a3462 (patch)
tree762f776fc4cefb0b6c91d0e80fe8e39817cbe65c
parentcfdf77c69fa18548bab78c1628e2eb5c11f4b4a2 (diff)
downloadluairc-66d4b88e39b710b836bb40d34abefc5ade0a3462.tar.gz
luairc-66d4b88e39b710b836bb40d34abefc5ade0a3462.zip
Move channel and network definitions to the top so people can see them
-rw-r--r--test/luabot.lua6
1 files 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}