diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-22 21:22:09 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-22 21:22:09 +0100 |
commit | edb270838305ee330480bc0fb4060b11af4ff128 (patch) | |
tree | be042a659f910a0e22f7c06816b1f55ce746888f /lib | |
parent | e999932b5e4971febc4aa2f255b907e2fc9cefaf (diff) |
message.rb: #notify() method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/message.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index de72d30c..df3812e0 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -382,6 +382,12 @@ module Irc plainokay end + # send a NOTICE to the message source + # + def notify(msg,opts={}) + @bot.notice(sourcenick, msg, opts) + end + end # class to manage IRC PRIVMSGs |