Permalink
Browse files

format !links

  • Loading branch information...
1 parent def4b85 commit 256f576fa7c1d189bb5f0f9e1676664888307e11 @jamiew committed Jun 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 fatbot.rb
View
@@ -148,8 +148,8 @@ def ops?(nick)
# echo back collected URLs
on :channel, /^\!links/i do
if $link_store[channel]
- msg channel, "Recent URLs: (#{$link_store[channel].size} total)"
- $link_store[channel].collect { |l| msg channel, "#{l[:url]} by #{l[:nick]}" }[0..2]
+ msg channel, "Most Recent URLs (#{$link_store[channel].size} total)"
+ $link_store[channel].collect { |l| msg channel, "http://#{l[:url]} posted by #{l[:nick]}" }[0..2]
else
msg channel, "No URLs yet!"
end

0 comments on commit 256f576

Please sign in to comment.