chiark / gitweb /
Hopefully CVS will not eat this change...
authormatthew <matthew>
Sun, 3 Feb 2002 23:45:31 +0000 (23:45 +0000)
committermatthew <matthew>
Sun, 3 Feb 2002 23:45:31 +0000 (23:45 +0000)
acrobat-chiark-0.2.py

index 0c60726..7469ae7 100755 (executable)
@@ -136,7 +136,7 @@ class Acrobat(SingleServerIRCBot):
     def infoq(self, cmd, nick, conn, public):
         # version control magic
         acrorevision="$Revision$"
-        acrorev1=re.sub(r'\$Revision$Revision$')
+        acrorev1=re.sub(r'\$Revision: (.*)',r'\1',acrorevision)
         acroversion=re.sub(r'(.*) \$',r'\1',acrorev1)
         if public == 1:
             conn.privmsg(self.channel,