Move channel and network definitions to the top so people can see them

This commit is contained in:
Shawn M Moore 2007-09-11 22:39:13 -05:00
parent cfdf77c69f
commit 66d4b88e39

View File

@ -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}