diff options
-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| |