Bugs/Timers

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with 'An Eggdrop 1.6.21 bug can cause the [utimers]/[timers] Tcl command to not always be reliable in cases of bad timing. [http://forum.egghelp.org/viewtopic.php?t=18760 Egghelp foru…')
Line 1: Line 1:
-
An Eggdrop 1.6.21 bug can cause the [utimers]/[timers] Tcl command to not always be reliable in cases of bad timing.
+
= Symptom =
 +
 
 +
An Eggdrop 1.6.21 bug can cause the [utimers]/[timers] Tcl command to not always be reliable in cases of bad timing. Only Eggdrop1.6.21 is affected.
[http://forum.egghelp.org/viewtopic.php?t=18760 Egghelp forum thread]
[http://forum.egghelp.org/viewtopic.php?t=18760 Egghelp forum thread]
 +
 +
= Workaround =
To work around it it:
To work around it it:
Line 14: Line 18:
}
}
}}
}}
 +
 +
or apply [http://thommey.tclhelp.net/timerworkaround.patch this patch] as usual (patch -p1 < timerworkaround.patch).
Then recompile the bot.
Then recompile the bot.

Revision as of 11:47, 6 May 2012

Symptom

An Eggdrop 1.6.21 bug can cause the [utimers]/[timers] Tcl command to not always be reliable in cases of bad timing. Only Eggdrop1.6.21 is affected.

Egghelp forum thread

Workaround

To work around it it:

Open the src/tcl.c file in your editor.

Search for (around line 614)

void do_tcl(char *context, char *script) {
  do_tcl_async(context, script, bgtclcallback);
}

and replace it with

void do_tcl(char *context, char *script) {
  do_tcl_sync(context, script, bgtclcallback, 0);
}


or apply this patch as usual (patch -p1 < timerworkaround.patch).

Then recompile the bot.

Personal tools