From cb32e392b722c3c84f6c49fccfc0ea00192ac17b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 19 Aug 2008 20:31:44 +0200 Subject: IRC Socket: documentation cleanup --- lib/rbot/ircsocket.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/rbot/ircsocket.rb') diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index 6039b9a6..496486bb 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -1,10 +1,18 @@ +#-- vim:sw=2:et +#++ +# +# :title: IRC Socket +# +# This module implements the IRC socket interface, including IRC message +# penalty computation and the message queue system + require 'monitor' class ::String # Calculate the penalty which will be assigned to this message # by the IRCd def irc_send_penalty - # According to eggrdop, the initial penalty is + # According to eggdrop, the initial penalty is penalty = 1 + self.size/100 # on everything but UnderNET where it's # penalty = 2 + self.size/120 -- cgit v1.2.3