diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-27 16:04:40 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-27 16:04:40 +0000 |
commit | e96f1d48d68a59d6b4e6009229d3cbd9ab54aa81 (patch) | |
tree | ed70a969709e40f9ea3788a0f5f87e97ce7ca544 /irc/rbot/files/patch-karma | |
parent | Correct plist entry. (diff) |
- Runtime fixes for ruby-1.8
- Raise PORTREVISION
PR: ports/64782, ports/64789
Submitted by: David Bushong <david+ports@bushong.net> (maintainer)
Diffstat (limited to 'irc/rbot/files/patch-karma')
-rw-r--r-- | irc/rbot/files/patch-karma | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/irc/rbot/files/patch-karma b/irc/rbot/files/patch-karma new file mode 100644 index 000000000000..29690392db9d --- /dev/null +++ b/irc/rbot/files/patch-karma @@ -0,0 +1,14 @@ +--- 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] |