+2007-02-15 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+ * Plugin: new unreplied() method to handle PRIVMSGs which have not
+ been replied to.
+
2007-02-12 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
* Remote Service Provider: from an idea by halorgium <rbot@spork.in>,
end
end
- def listen(m)
- return if m.address?
+ def unreplied(m)
+ # return if m.address?
# in channel message, not to me
# TODO option to do if(m.message =~ /^(.*)$/, ie try any line as a
# keyword lookup.
unless ignored
@plugins.delegate "listen", m
@plugins.privmsg(m) if m.address?
+ if not m.replied
+ @plugins.delegate "unreplied", m
+ end
end
}
@client[:notice] = proc { |data|
etc.
privmsg(PrivMessage)::
- called for a PRIVMSG if the first word matches one
+ Called for a PRIVMSG if the first word matches one
the plugin register()d for. Use m.plugin to get
that word and m.params for the rest of the message,
if applicable.
+ unreplied(PrivMessage)::
+ Called for a PRIVMSG which has not been replied to.
+
kick(KickMessage)::
Called when a user (or the bot) is kicked from a
channel the bot is in.