BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Temar on November 05, 2007, 02:03:29 am
-
Stop the Bot from Loading Modules with out useing _
this is good for shared directories
you simple set what not to load in the .conf file of your bot and it wont load
remove .txt from conf file, and remove s from end of main.phps
-
I would personally prefer $dontload['module'][]='test.php' combined with in_array() to check if a module should be loaded or not instead of using isset() on a non-existant key.
It just strikes me as more programmatically correct.
-
Added to SVN.
I left it at pure isset() checking, as whatever you do you'd have to do some kind of isset() or is_array() check anyways.