X-Git-Url: https://git.ctpug.org.za/?p=bzrirker.git;a=blobdiff_plain;f=irkerhook.py;fp=irkerhook.py;h=6aadd7ed7d5be55309bc3da1bb212aafd8194c5a;hp=df432c1e5782c5f2759acdfaef9ddba7972ee032;hb=bffe73e8b35d89de8d1f79a6744fcc7fac323545;hpb=c1a589caf06f655118bcf8cd8788ec902f627a1b 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