From b3d5c16d3c4528afc1bf66ded137ad81fa4dfa0e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 30 Dec 2012 17:59:26 +0000 Subject: [PATCH] Twitter: Name threads spawned. --- Twitter/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Twitter/plugin.py b/Twitter/plugin.py index bb6389a..ba83372 100644 --- a/Twitter/plugin.py +++ b/Twitter/plugin.py @@ -212,7 +212,8 @@ class Twitter(callbacks.Plugin): if self.registryValue('announce.interval', channel) != 0 and \ channel not in self._runningAnnounces: threading.Thread(target=self._fetchTimeline, - args=(irc, channel)).start() + args=(irc, channel), + name='Twitter timeline for %s' % channel).start() def _fetchTimeline(self, irc, channel): if channel in self._runningAnnounces: @@ -672,3 +673,4 @@ Class = Twitter # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: +