X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Ftimer.rb;h=bebe41f2fd589ba2fd9ccd41db8d354eb7dde0f2;hb=c986bc82f4b856818e97e24fbf5fc11eef5f25c2;hp=db0c6ea16bee0d89aefd0104832347551fee997c;hpb=b035320d69d2144765645b9f3143101b003e547d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb index db0c6ea1..bebe41f2 100644 --- a/lib/rbot/timer.rb +++ b/lib/rbot/timer.rb @@ -131,6 +131,7 @@ module Timer def reschedule(handle, period) raise "no such timer #{handle}" unless @timers[handle] @timers[handle].reschedule(period) + tick end # you can call this when you know you're idle, or you can split off a