]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
quotes plugin: add missing 'lastquote :channel' map
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 30 Jan 2009 14:40:27 +0000 (15:40 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 30 Jan 2009 14:40:27 +0000 (15:40 +0100)
data/rbot/plugins/quotes.rb

index 257bf88007a77b3e99aa28110c6ff044168bb894..c631527f468f72af43a0cc88e209d7e49d776eb8 100644 (file)
@@ -276,6 +276,7 @@ plugin.map "whenquote :channel :num", :action => :cmd_whenquote, :requirements =
 plugin.map "searchquote :channel *reg", :action => :cmd_searchquote, :requirements => { :channel => Regexp::Irc::GEN_CHAN }, :auth_path => '!quote::other::view::search!'
 plugin.map "countquote :channel [*reg]", :action => :cmd_countquote, :requirements => { :channel => Regexp::Irc::GEN_CHAN }, :auth_path => '!quote::other::view::count!'
 plugin.map "topicquote :channel [:num]", :action => :cmd_topicquote, :requirements => { :channel => Regexp::Irc::GEN_CHAN, :num => /^\d+$/ }, :auth_path => '!quote::other::topic!'
+plugin.map "lastquote :channel", :action => :cmd_lastquote, :requirements => { :channel => Regexp::Irc::GEN_CHAN }, :auth_path => '!quote::other::view::last!'
 
 plugin.default_auth('edit', false) # Prevent random people from removing quotes
 plugin.default_auth('edit::add', true) # But allow them to add them