]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Fix typo in previous patch
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Mar 2010 13:44:23 +0000 (14:44 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Mar 2010 13:44:23 +0000 (14:44 +0100)
My fault for not finding it in review

lib/rbot/ircsocket.rb

index 7c0253a5e8c966de1b300d02f8b882a6c0525123..652b1f6dfc99883ded4027d6e0f7dc4bf5156dc1 100644 (file)
@@ -48,7 +48,7 @@ class ::String
       dests = pars.split($;,2).first
       penalty += dests.split(',').size
     when :WHO
-      args = parts.split
+      args = pars.split
       if args.length > 0
         penalty += args.inject(0){ |sum,x| sum += ((x.length > 4) ? 3 : 5) }
       else