chiark / gitweb /
Hopefully CVS will not eat this change...
[irc.git] / 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,