]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
timers: get rid of useless data passing to timer actions.
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Aug 2007 10:46:14 +0000 (10:46 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Aug 2007 10:46:14 +0000 (10:46 +0000)
commit9f3561b05bef1ba04f9cc49ea4fb89a49b6291a4
treebd7054418b7b0b1bf44bc91feded676d0a65722e
parent4a86158144a13bc901222442ccd2db9c2bbd6bb0
timers: get rid of useless data passing to timer actions.

The timer blocks are closures, so they inherit the variables in the scope they were created. Passing those same variables to the block as data is useless.
data/rbot/plugins/autorejoin.rb
data/rbot/plugins/markov.rb
data/rbot/plugins/rss.rb