sandboxed evaluation
parent
dc699e006b
commit
775eb31bc0
3
anna.scm
3
anna.scm
|
@ -5,6 +5,7 @@
|
||||||
(ice-9 textual-ports)
|
(ice-9 textual-ports)
|
||||||
(ice-9 format)
|
(ice-9 format)
|
||||||
(ice-9 control)
|
(ice-9 control)
|
||||||
|
(ice-9 sandbox)
|
||||||
(rnrs exceptions))
|
(rnrs exceptions))
|
||||||
|
|
||||||
(define +channels+ '("#tildetown" "#bots"))
|
(define +channels+ '("#tildetown" "#bots"))
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
(guard (ex
|
(guard (ex
|
||||||
(else (begin (display "error encountered!\n")
|
(else (begin (display "error encountered!\n")
|
||||||
'error)))
|
'error)))
|
||||||
(eval (read (open-input-string str)) (interaction-environment))))
|
(eval-in-sandbox (read (open-input-string str)))))
|
||||||
|
|
||||||
(define (main-loop stream)
|
(define (main-loop stream)
|
||||||
(let* ((inl (read-line stream))
|
(let* ((inl (read-line stream))
|
||||||
|
|
Loading…
Reference in New Issue