@@ -31,8 +31,10 @@ addEventHandler("onResourceStart",resourceRoot,
31
31
function ()
32
32
-- Is the sockets module loaded?
33
33
if not sockOpen then
34
- outputServerLog (" IRC: could not start resource, the sockets module isn't loaded!" )
35
- outputServerLog (" IRC: restart the resource to retry" )
34
+ outputDebugString (" could not start the irc resource, the sockets module isn't loaded!" )
35
+ outputDebugString (" try to start the resource again to retry" )
36
+ startupCancelled = true
37
+ cancelEvent ()
36
38
return
37
39
end
38
40
@@ -44,20 +46,22 @@ addEventHandler("onResourceStart",resourceRoot,
44
46
end
45
47
end
46
48
if # missingRights ~= 0 then
47
- outputServerLog (" IRC: " ..# missingRights .. " missing rights: " )
49
+ outputDebugString (" IRC: " ..# missingRights .. " missing rights: " )
48
50
for i ,missingRight in ipairs (missingRights ) do
49
- outputServerLog (" - " .. missingRight )
51
+ outputDebugString (" - " .. missingRight )
50
52
end
51
- outputServerLog (" IRC: could not start resource, the resource is missing rights!" )
52
- outputServerLog (" IRC: restart the resource to retry" )
53
+ outputDebugString (" the irc resource does not have sufficient rights, type 'aclrequest allow irc all'" )
54
+ outputDebugString (" try to start the resource again to retry" )
55
+ startupCancelled = true
56
+ cancelEvent ()
53
57
return
54
58
end
55
59
56
60
-- Is the resource up-to-date?
57
61
function checkVersion (res ,version )
58
62
if res ~= " ERROR" and version then
59
63
if getNumberFromVersion (version ) > getNumberFromVersion (getResourceInfo (getThisResource ()," version" )) then
60
- outputServerLog ( " IRC: resource is outdated, newest version: " .. version )
64
+ outputDebugString ( " the irc resource is outdated, newest version: " .. version )
61
65
setTimer (outputIRC ,10000 ,1 ," The irc resource is outdated, newest version: " .. version )
62
66
end
63
67
end
0 commit comments