Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libs/mlmmj.py b/libs/mlmmj.py
- index 42e7f97..6e484e0 100644
- --- a/libs/mlmmj.py
- +++ b/libs/mlmmj.py
- @@ -786,9 +786,9 @@ def has_subscriber(mail, subscriber, subscription=None):
- if os.path.exists(_sub_file):
- with open(_sub_file, 'r') as f:
- - line = f.readline().strip()
- - if line == subscriber:
- - return (True, subscription)
- + for line in f:
- + if line.strip() == subscriber:
- + return (True, subscription)
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement