Twitter: Name threads spawned.

master
Valentin Lorentz 2012-12-30 17:59:26 +00:00
parent 9ecd9b475c
commit b3d5c16d3c
1 changed files with 3 additions and 1 deletions

View File

@ -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: