Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.57 KB | None | 0 0
  1. diff --git a/libs/mlmmj.py b/libs/mlmmj.py
  2. index 42e7f97..6e484e0 100644
  3. --- a/libs/mlmmj.py
  4. +++ b/libs/mlmmj.py
  5. @@ -786,9 +786,9 @@ def has_subscriber(mail, subscriber, subscription=None):
  6.  
  7.          if os.path.exists(_sub_file):
  8.              with open(_sub_file, 'r') as f:
  9. -                line = f.readline().strip()
  10. -                if line == subscriber:
  11. -                    return (True, subscription)
  12. +                for line in f:
  13. +                    if line.strip() == subscriber:
  14. +                        return (True, subscription)
  15.  
  16.      return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement