#!/usr/bin/env python2
+# $Id$
#
# Joel Rosdahl <joel@rosdahl.net>
# Andrew Walkingshaw <andrew@lexical.org.uk>
+# Peter Corbett <ptc24@cam.ac.uk>
+# Matthew Vernon <matthew@debian.org>
#
# This file is part of Acrobat.
#
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
#
-# Foobar is distributed in the hope that it will be useful,
+# Acrobat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with Foobar; if not, write to the Free Software
+# along with Acrobat; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
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
[(server, port)], nickname, nickname)
self.channel = channel
self.owner = owner
+ # version control magic
+ acrorevision="$Revision$"
+ acrorev1=re.sub(Revision$\([^$]*\)$,\1,acrorevision)
+ acrorev2=re.sub($\(.*\),\1,acrorev1)
# load the karma db
try:
f = open("karmadump", "r")