diff --git a/uvgotmail.py b/uvgotmail.py index 6a94c13..48c789c 100755 --- a/uvgotmail.py +++ b/uvgotmail.py @@ -6,8 +6,8 @@ import atexit def parseYN(s, default = False): if default == False: - return s.lower() in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh', 'go for it'] - else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that'] + return s.lower() in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh', 'go for it', 'aye'] + else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that', 'nay'] def getYN(b): return "yes" if b else "no"