From d8fab2ca5978a6f8234cbbfada73cc17355e0e52 Mon Sep 17 00:00:00 2001 From: Lukas Pohlreich Date: Fri, 24 Oct 2014 16:01:35 +0200 Subject: [PATCH] Added #me for actual user's name --- rainbowstream/util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.25.1