Possibly fixed a rare fatal error.
This commit is contained in:
1 parent
e33fd1df8d
commit
3bd8e9369d
2 files changed
+16
-13
No files matched your search
@@ -481,19 +481,21 @@ if (conf_get('aliases:alias')) {
|
|||||||
while (1) {
|
while (1) {
|
||||||
# Timer check.
|
# Timer check.
|
||||||
foreach my $tk (keys %TIMERS) {
|
foreach my $tk (keys %TIMERS) {
|
||||||
if ($TIMERS{$tk}{time} <= time) {
|
if (exists $TIMERS{$tk}) {
|
||||||
&{ $TIMERS{$tk}{sub} }();
|
if ($TIMERS{$tk}{time} <= time) {
|
||||||
if ($TIMERS{$tk}{type} == 1) {
|
&{ $TIMERS{$tk}{sub} }();
|
||||||
# If it's type 1, delete from memory.
|
if ($TIMERS{$tk}{type} == 1) {
|
||||||
delete $TIMERS{$tk};
|
# If it's type 1, delete from memory.
|
||||||
}
|
delete $TIMERS{$tk};
|
||||||
elsif ($TIMERS{$tk}{type} == 2) {
|
}
|
||||||
# If it's type 2, reset timer.
|
elsif ($TIMERS{$tk}{type} == 2) {
|
||||||
$TIMERS{$tk}{time} = time + $TIMERS{$tk}{secs};
|
# If it's type 2, reset timer.
|
||||||
}
|
$TIMERS{$tk}{time} = time + $TIMERS{$tk}{secs};
|
||||||
else {
|
}
|
||||||
# This should never happen.
|
else {
|
||||||
delete $TIMERS{$tk};
|
# This should never happen.
|
||||||
|
delete $TIMERS{$tk};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
* Possibly fixed a rare fatal error.
|
||||||
* Werewolf: Rewrote WAIT to be more decent.
|
* Werewolf: Rewrote WAIT to be more decent.
|
||||||
* Werewolf: Wounded villagers are now excluded from winning villager count.
|
* Werewolf: Wounded villagers are now excluded from winning villager count.
|
||||||
* Werewolf: Dynamic lynch and no victim messages.
|
* Werewolf: Dynamic lynch and no victim messages.
|
||||||
|
|||||||
Reference in new issue
Block a user