]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
plugins.rb: set up fast delegation hash
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 2 Sep 2007 09:30:08 +0000 (09:30 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 2 Sep 2007 09:30:08 +0000 (09:30 +0000)
commita6b1cf368b1d6ab8b66a69eb63560a898b224d7e
tree99869ec09c4982f49531a34114461a02259571ea
parentd73581c3424176cd83e58e8e8fdceea528b172f7
plugins.rb: set up fast delegation hash

Delegating a message requires checking if each of the loaded plugins
responds to a given method. This can be time consuming when many
plugins are loaded.

We set up a hash that maps each commonly delegated method to the list of
plugins that respond to it.
lib/rbot/plugins.rb