From: Neil Date: Sun, 11 Nov 2012 12:32:35 +0000 (+0200) Subject: Minor cleanup. Fix mulitple channels to match irkerhook's behaviour X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=bffe73e8b35d89de8d1f79a6744fcc7fac323545;p=bzrirker.git Minor cleanup. Fix mulitple channels to match irkerhook's behaviour --- diff --git a/irkerhook.py b/irkerhook.py index df432c1..6aadd7e 100644 --- a/irkerhook.py +++ b/irkerhook.py @@ -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