aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-06-18 01:57:44 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-06-18 01:57:44 +0000
commit8ed2dbdb193f4043fe162920dfd58843178b1ee8 (patch)
treeace00ee22cd6852cc7c06ddd815d7959ecd5f72a
parentlowercase dev names for matching. (diff)
downloadrbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.tar.gz
rbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.tar.bz2
rbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.zip
Avoid mismatch on server messages.
-rw-r--r--gentoo-tinyurl.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gentoo-tinyurl.rb b/gentoo-tinyurl.rb
index 8a6f6d9..91f601f 100644
--- a/gentoo-tinyurl.rb
+++ b/gentoo-tinyurl.rb
@@ -14,6 +14,7 @@ class GentooShortenURLs < Plugin
end
def listen(m)
return if m.address?
+ return unless m.is_a?(Irc::UserMessage)
#return unless lurk?(m)
return unless m.message =~ /(\b|^)[a-z]+:\/\/.*($|\s)/i
m.message.split.each do |word|