diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-07 00:50:26 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-07 00:50:26 +0200 |
commit | 0e8f24e9b72eaaacc830cd5265a92944f806f587 (patch) | |
tree | 502aa9773bdd15db8a80969217f758e7a3882f73 /lib/rbot/plugins.rb | |
parent | 1e841175468b3e0357ab278a226a237fe4d7687e (diff) |
plugins: message() delegate
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r-- | lib/rbot/plugins.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 5280a117..7631bfc3 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -82,6 +82,11 @@ module Plugins use message.ctcp_reply, which sends a private NOTICE to the sender. + message(PrivMessage):: + Called for all PRIVMSG. Hook on this method if you + need to handle PRIVMSGs regardless of whether they are + addressed to the bot or not, and regardless of + privmsg(PrivMessage):: Called for a PRIVMSG if the first word matches one the plugin #register()ed for. Use m.plugin to get |