chiark / gitweb /
CVS version magic
authormatthew <matthew>
Sun, 3 Feb 2002 22:56:26 +0000 (22:56 +0000)
committermatthew <matthew>
Sun, 3 Feb 2002 22:56:26 +0000 (22:56 +0000)
acrobat-chiark-0.2.py

index a8b6cc8421ff93e2c5c1565c0609b49b39a3352b..aac0c23865f5f22ebd1127d76a110418ba263aa2 100755 (executable)
@@ -33,7 +33,7 @@
               back with the url.
 """
 
-import string, urllib, sys, cPickle, os, random
+import string, urllib, sys, cPickle, os, random, re
 from ircbot import SingleServerIRCBot
 from irclib import nm_to_n, irc_lower
 
@@ -49,6 +49,9 @@ class Acrobat(SingleServerIRCBot):
                                     [(server, port)], nickname, nickname)
         self.channel = channel
         self.owner = owner
+        # version control magic
+        acrorevision=$Revision$
+        acroversion=re.sub($Revision$]*\)$,\1)
         # load the karma db
         try:
             f = open("karmadump", "r")