|
# File contrib/plugins/stats.rb, line 193
def handle_listtokens(m)
if not m.private? and not @channels.empty?
tokens = @channels[m.target]
unless tokens.empty?
toks = ""
tokens.each_key { |k|
toks << "#{k} "
}
@bot.action m.replyto, "is currently keeping stats for: #{toks}"
else
@bot.action m.replyto, "is not currently keeping stats for anything"
end
elsif not m.private?
@bot.action m.replyto, "is not currently keeping stats for anything"
end
end
|