BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Kieba on June 30, 2008, 10:57:40 am

Title: log() in Bot.php causing bot crash
Post by: Kieba on June 30, 2008, 10:57:40 am
a raid bot not running 24/7 but just for certain raids. different user can start bot. they r in different access groups and the creating of the log files with access owner crashes bot (dont have a deep look in their access management).

i helped them out with a workarround in log()

Code: [Select]
chmod ($this -> log_path . "/" . gmdate("Y-m-d") . ".txt", 0777);
after fclose($log)


for future we should implement a check on fopen (fopen returns true/false). dont know a practicable solution for that atm.
SimplePortal 2.3.7 © 2008-2024, SimplePortal