Menu

Operator Load Bug

when Freya starts up the operators are never loaded.
after many hrs of scratching my head I finally found out why!

the config is not loaded before we start setting all the timer stuff. so it thinks you have the op chat turned off.

here is the fix.

line 52-59:
my(@configdata);
&loadconfig();

if ($opchat) { $SIG{ALRM} = \&ScriptTimer; } # Yay for timers !!

sub main() {
odch::register_script_name($botname);
if ($opchat) { alarm $wait; }

pretty much all I did was move
&loadconfig();
up before
if ($opchat) { $SIG{ALRM} = \&ScriptTimer; } # Yay for timers !!

if you don't use the Opchat you don't have to worry.
this fix will be in 2.1 when I finally get it tarballed and uploaded XD

Posted by Stephen Leaf 2003-10-18

Log in to post a comment.

MongoDB Logo MongoDB