summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-22 21:22:09 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-22 21:22:09 +0100
commitedb270838305ee330480bc0fb4060b11af4ff128 (patch)
treebe042a659f910a0e22f7c06816b1f55ce746888f /lib/rbot
parente999932b5e4971febc4aa2f255b907e2fc9cefaf (diff)
message.rb: #notify() method
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/message.rb6
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