Changeset 8893bf66c0aa6f2bbf2e2941f7be82486fecdb46
- Timestamp:
- 03/07/10 22:34:58 (5 months ago)
- Children:
- 53c82a94714e439c63a65fccdaf2512383cffb7a
- Parents:
- 5f9d3a09ef35ffe149aa080e6377d811a1994291
- git-author:
- Robin H. Johnson <robbat2@gentoo.org> 1245276959 +0000
- git-committer:
- Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 1267990498 +0100
- Files:
-
- 1 modified
-
lib/rbot/ircsocket.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lib/rbot/ircsocket.rb
r1579c60 r8893bf6 49 49 penalty += dests.split(',').size 50 50 when :WHO 51 # I'm too lazy to implement this one correctly 52 penalty += 5 51 args = parts.split 52 if args.length > 0 53 penalty += args.inject(0){ |sum,x| sum += ((x.length > 4) ? 3 : 5) } 54 else 55 penalty += 10 56 end 57 when :PART 58 penalty += 4 53 59 when :AWAY, :JOIN, :VERSION, :TIME, :TRACE, :WHOIS, :DNS 54 60 penalty += 2
