diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-08-19 20:31:44 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-08-19 20:31:44 +0200 |
commit | cb32e392b722c3c84f6c49fccfc0ea00192ac17b (patch) | |
tree | db7968235516d23438deaa67b89289c7e0b7cd9a /lib | |
parent | 5aa23b55a4547257580d047118ec4019a93499f7 (diff) |
IRC Socket: documentation cleanup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/ircsocket.rb | 10 |
1 files changed, 9 insertions, 1 deletions
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 |