diff options
author | 2009-06-18 01:57:44 +0000 | |
---|---|---|
committer | 2009-06-18 01:57:44 +0000 | |
commit | 8ed2dbdb193f4043fe162920dfd58843178b1ee8 (patch) | |
tree | ace00ee22cd6852cc7c06ddd815d7959ecd5f72a | |
parent | lowercase dev names for matching. (diff) | |
download | rbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.tar.gz rbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.tar.bz2 rbot-gentoo-8ed2dbdb193f4043fe162920dfd58843178b1ee8.zip |
Avoid mismatch on server messages.
-rw-r--r-- | gentoo-tinyurl.rb | 1 |
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| |