freebsd-ports/irc/rbot/files/patch-karma
Pav Lucistnik e96f1d48d6 - Runtime fixes for ruby-1.8
- Raise PORTREVISION

PR:		ports/64782, ports/64789
Submitted by:	David Bushong <david+ports@bushong.net> (maintainer)
2004-03-27 16:04:40 +00:00

14 lines
647 B
Text

--- rbot/plugins/karma.rb.orig Thu Mar 25 18:09:37 2004
+++ rbot/plugins/karma.rb Thu Mar 25 18:11:01 2004
@@ -34,9 +34,9 @@
if(m.kind_of?(PrivMessage) && m.public?)
# in channel message, the kind we are interested in
if(m.message =~ /(\+\+|--)/)
- string = m.message.sub(/\W(--|\+\+)(\(.*?\)|[^(++)(--)\s]+)/, "\2\1")
+ string = m.message.sub(/\W(--|\+\+)(\(.*?\)|[^-+\s]+)/, "\2\1")
seen = Hash.new
- while(string.sub!(/(\(.*?\)|[^(++)(--)\s]+)(\+\+|--)/, ""))
+ while(string.sub!(/(\(.*?\)|[^-+\s]+)(\+\+|--)/, ""))
key = $1
change = $2
next if seen[key]