prevent baskets from left sluts
This commit is contained in:
parent
08297f5f0b
commit
c8d9d38826
1 changed files with 4 additions and 0 deletions
|
|
@ -222,7 +222,11 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
|||
ids = self.browser.get_baskets()
|
||||
while new_baskets > 0 and len(ids) > new_baskets:
|
||||
new_baskets -= 1
|
||||
if ids[new_baskets] == '-1':
|
||||
continue
|
||||
profile = self.browser.get_profile(ids[new_baskets])
|
||||
if not profile or profile.get_id() == 0:
|
||||
continue
|
||||
if self.antispam and not self.antispam.check(profile):
|
||||
self.logger.debug('Skipped a spam-basket from %s' % profile.get_name())
|
||||
self.report_spam(profile.get_id())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue