]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - lib/rbot/ircbot.rb
ircbot: sendmsg filtering
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 11 Feb 2009 22:34:16 +0000 (23:34 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 11 Feb 2009 22:48:44 +0000 (23:48 +0100)
commit75c90dfd30d17544b2b86323b3993ac5c3083ca9
tree308c842b544761803fc3ec07fe1f7358a947ebc2
parent8115edef0169d95f0ebb64d77364e346e9452099
ircbot: sendmsg filtering

We allow a filter to manipulate the arguments of sendmsg() by running
them through the filters of the :sendmsg group. The DataStream passed to
the filters has four keys:
  :text => the message text
  :type => the message type (typically, PRIVSMG or NOTICE)
  :dest => the destination (typically, a Channel or User)
  :options => options passed to sendmsg, merged with the default ones
lib/rbot/ircbot.rb