broadcast version number
authorThomasV <thomasv@gitorious>
Wed, 20 Jun 2012 12:41:17 +0000 (16:41 +0400)
committerThomasV <thomasv@gitorious>
Wed, 20 Jun 2012 12:41:17 +0000 (16:41 +0400)
backends/irc/__init__.py
version.py [new file with mode: 0644]

index 5d92ac1..9c8bfe2 100644 (file)
@@ -5,7 +5,7 @@ def random_string(N):
     return ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(N))
 
 from processor import Processor
-
+from version import VERSION
 
 class IrcThread(threading.Thread):
 
@@ -25,7 +25,7 @@ class IrcThread(threading.Thread):
 
 
     def getname(self):
-        s = ''
+        s = 'v' + VERSION + ' '
         if self.stratum_tcp_port:
             s += 't' + self.stratum_tcp_port + ' ' 
         if self.stratum_http_port:
diff --git a/version.py b/version.py
new file mode 100644 (file)
index 0000000..72bdd01
--- /dev/null
@@ -0,0 +1 @@
+VERSION = "0.1"