From 8ed2dbdb193f4043fe162920dfd58843178b1ee8 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 18 Jun 2009 01:57:44 +0000 Subject: Avoid mismatch on server messages. --- gentoo-tinyurl.rb | 1 + 1 file changed, 1 insertion(+) 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| -- cgit v1.2.3-65-gdbad