From: Lukas Pohlreich Date: Fri, 24 Oct 2014 14:01:35 +0000 (+0200) Subject: Added #me for actual user's name X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8fab2ca5978a6f8234cbbfada73cc17355e0e52;p=rainbowstream.git Added #me for actual user's name --- diff --git a/rainbowstream/util.py b/rainbowstream/util.py index 1451aec..81dddfd 100644 --- a/rainbowstream/util.py +++ b/rainbowstream/util.py @@ -26,18 +26,19 @@ def format_prefix(listname = '', keyword = ''): Format the custom prefix """ formattedPrefix = c['PREFIX'] - username = '@' + c['original_name'] + owner = '@' + c['original_name'] place = '' if keyword != '': place = '/public' keyword = '#' + keyword if listname != '': - username, place = listname.split('/') + owner, place = listname.split('/') place = "/" + place - formattedPrefix = formattedPrefix.replace("#username", username) + formattedPrefix = formattedPrefix.replace("#owner", owner) formattedPrefix = formattedPrefix.replace("#place", place) formattedPrefix = formattedPrefix.replace("#keyword", keyword) + formattedPrefix = formattedPrefix.replace("#me", '@' + c['original_name']) return formattedPrefix