@@ -31,8 +31,10 @@ addEventHandler("onResourceStart",resourceRoot,
3131 function ()
3232 -- Is the sockets module loaded?
3333 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 ()
3638 return
3739 end
3840
@@ -44,20 +46,22 @@ addEventHandler("onResourceStart",resourceRoot,
4446 end
4547 end
4648 if # missingRights ~= 0 then
47- outputServerLog (" IRC: " ..# missingRights .. " missing rights: " )
49+ outputDebugString (" IRC: " ..# missingRights .. " missing rights: " )
4850 for i ,missingRight in ipairs (missingRights ) do
49- outputServerLog (" - " .. missingRight )
51+ outputDebugString (" - " .. missingRight )
5052 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 ()
5357 return
5458 end
5559
5660 -- Is the resource up-to-date?
5761 function checkVersion (res ,version )
5862 if res ~= " ERROR" and version then
5963 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 )
6165 setTimer (outputIRC ,10000 ,1 ," The irc resource is outdated, newest version: " .. version )
6266 end
6367 end
0 commit comments