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

Title: Stop the Bot from Loading Modules
Post 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
Title: Re: Stop the Bot from Loading Modules
Post by: Blueeagle on November 05, 2007, 03:14:29 pm
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.
Title: Re: Stop the Bot from Loading Modules
Post by: Alreadythere on November 16, 2007, 06:08:44 pm
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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal