summaryrefslogtreecommitdiff
path: root/irc/rbot/files/patch-karma
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-27 16:04:40 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-27 16:04:40 +0000
commite96f1d48d68a59d6b4e6009229d3cbd9ab54aa81 (patch)
treeed70a969709e40f9ea3788a0f5f87e97ce7ca544 /irc/rbot/files/patch-karma
parentCorrect 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-karma14
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]