From bffe73e8b35d89de8d1f79a6744fcc7fac323545 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 Nov 2012 14:32:35 +0200 Subject: [PATCH] Minor cleanup. Fix mulitple channels to match irkerhook's behaviour --- irkerhook.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 -- 2.34.1