#
# antenna.rb: included TDiary::Filter::AntennaFilter class
#

module TDiary
	module Filter
		class AntennaFilter < Filter
			def comment_filter( diary, comment )
				true
			end

			def referer_filter( referer )
				if /head/i =~ @cgi.request_method then
					false
				elsif /natsu-mican/i =~ @cgi.user_agent then
					false
				elsif /samidare/i =~ @cgi.user_agent then
					false
				elsif /tamatebako/i =~ @cgi.user_agent then
					false
				elsif /antenna/i =~ @cgi.user_agent then
					false
				else
					true
				end
			end
		end
	end
end
