From edb270838305ee330480bc0fb4060b11af4ff128 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 22 Feb 2008 21:22:09 +0100 Subject: message.rb: #notify() method --- lib/rbot/message.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/rbot') 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 -- cgit v1.2.3