mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-07-20 16:40:26 +02:00
Compare commits
1 Commits
sleep
...
hook_conne
Author | SHA1 | Date | |
---|---|---|---|
b07166345a |
3
init.lua
3
init.lua
@ -67,7 +67,7 @@ function meta:invoke(name, ...)
|
||||
local hooks = self.hooks[name]
|
||||
if hooks then
|
||||
for id, f in pairs(hooks) do
|
||||
if f(...) then
|
||||
if f(self, ...) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
@ -137,7 +137,6 @@ function meta_preconnect:connect(_host, _port)
|
||||
|
||||
repeat
|
||||
self:think()
|
||||
socket.select(nil, nil, 0.1) -- Sleep so that we don't eat CPU
|
||||
until self.authed
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user