mirror of https://github.com/nealey/irc-bot
Back to calling socat ourselves
This commit is contained in:
parent
1a06efd5fc
commit
90d91a8979
9
bot.ml
9
bot.ml
|
@ -89,11 +89,16 @@ let main () =
|
|||
let bot = {store = Infobot.create "info.cdb"} in
|
||||
let dispatcher = Dispatch.create () in
|
||||
|
||||
let iobuf_out = Iobuf.create dispatcher Unix.stdout "collab_out"
|
||||
let conn_out, conn_in =
|
||||
Process.spawn "socat" [|"socat";
|
||||
"STDIO";
|
||||
"OPENSSL:woozle.org:697,verify=0"|]
|
||||
in
|
||||
let iobuf_out = Iobuf.create dispatcher conn_out "collab_out"
|
||||
discard_command
|
||||
handle_error
|
||||
in
|
||||
let _ = Iobuf.create dispatcher Unix.stdin "collab_in"
|
||||
let _ = Iobuf.create dispatcher conn_in "collab_in"
|
||||
(handle_command bot iobuf_out)
|
||||
handle_error
|
||||
in
|
||||
|
|
Loading…
Reference in New Issue