##// END OF EJS Templates
Allow spaces in the notification usernames setting
neko259 -
r1452:2b3ee23e default
parent child Browse files
Show More
@@ -144,11 +144,12 b' class SettingsManager:'
144 return str(opening_post.id) in self.get_fav_threads()
144 return str(opening_post.id) in self.get_fav_threads()
145
145
146 def get_notification_usernames(self):
146 def get_notification_usernames(self):
147 name_list = self.get_setting(SETTING_USERNAME)
147 names = set()
148 name_list = self.get_setting(SETTING_USERNAME).strip()
148 if name_list is not None and len(name_list) > 0:
149 if name_list is not None and len(name_list) > 0:
149 return name_list.lower().split(',')
150 names = name_list.lower().split(',')
150 else:
151 names = set(name.strip() for name in names)
151 return list()
152 return names
152
153
153
154
154 class SessionSettingsManager(SettingsManager):
155 class SessionSettingsManager(SettingsManager):
General Comments 0
You need to be logged in to leave comments. Login now