From 644d90c0365ae9c4f6f32042173c2daf9eab2826 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 1 Nov 2008 00:56:36 +0000 Subject: [PATCH] Shrink the penalty calc for Gentoo. --- lib/rbot/ircsocket.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index 33e1bd9e..23436d28 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -15,7 +15,7 @@ class ::String penalty_min = 1 penalty_max = 99 # According to eggdrop, the initial penalty is - penalty = 1 + self.size/100 + penalty = 1 + self.size/200 # on everything but UnderNET where it's # penalty = 2 + self.size/120 @@ -51,9 +51,9 @@ class ::String penalty += dests.split(',').size when :WHO # I'm too lazy to implement this one correctly - penalty += 5 + penalty += 1 when :AWAY, :JOIN, :VERSION, :TIME, :TRACE, :WHOIS, :DNS - penalty += 2 + penalty += 1 when :INVITE, :NICK penalty += 3 when :ISON -- 2.32.0.93.g670b81a890