deal with eof a little better
svn: r1071
This commit is contained in:
parent
bab76d0479
commit
d044b06b27
|
@ -505,9 +505,11 @@
|
||||||
[(bye) #t] ; <- general disconnection
|
[(bye) #t] ; <- general disconnection
|
||||||
;; other messages require a login: valid users and a good password
|
;; other messages require a login: valid users and a good password
|
||||||
[else
|
[else
|
||||||
(let ([usernames (a-ref data 'usernames)]
|
(when (eof-object? msg)
|
||||||
[user-datas (a-ref data 'user-datas)])
|
(LOG "hangup")
|
||||||
(memq #f user-datas)
|
(error 'handin "hangup" (a-ref data 'username/s)))
|
||||||
|
(let ([usernames (a-ref data 'usernames #f)]
|
||||||
|
[user-datas (a-ref data 'user-datas #f)])
|
||||||
(when (or (memq #f user-datas)
|
(when (or (memq #f user-datas)
|
||||||
(not (has-password?
|
(not (has-password?
|
||||||
(a-ref data 'raw-password)
|
(a-ref data 'raw-password)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user