Minor cleanup. Fix mulitple channels to match irkerhook's behaviour
authorNeil <neil@dip.sun.ac.za>
Sun, 11 Nov 2012 12:32:35 +0000 (14:32 +0200)
committerNeil <neil@dip.sun.ac.za>
Sun, 11 Nov 2012 12:32:35 +0000 (14:32 +0200)
irkerhook.py

index df432c1e5782c5f2759acdfaef9ddba7972ee032..6aadd7ed7d5be55309bc3da1bb212aafd8194c5a 100644 (file)
@@ -3,16 +3,7 @@
 # Copyright 2012 Neil Muller
 # GPL 2+ - see COPYING for details
 
-from bzrlib import (
-    errors,
-    revision as _mod_revision,
-    )
-from bzrlib.config import (
-    ListOption,
-    Option,
-    bool_from_store,
-    int_from_store,
-    )
+from bzrlib.config import Option
 import socket
 import sys
 import json
@@ -126,6 +117,8 @@ class IrkerSender(object):
             # Do this after we have locked, to make things faster.
             self._setup_revision_and_revno()
             channels = self.config.get('irker_channels')
+            if channels:
+                channels = channels.split(',')
             msg = unicode(self._format())
             # We rely on the server truncating, rather than trying to be
             # too fancy here