X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=IRCBot.icl;fp=IRCBot.icl;h=e2e7d110162f01ef6ef692a6c19e097a92f5a03b;hp=3b620907b73267a47b952bb817c44614251a40b9;hb=fb92f01e027cdbf5ef979c5d5525211594d8f7c7;hpb=9385177d33913b183fff158ed04705f4a39bfb18 diff --git a/IRCBot.icl b/IRCBot.icl index 3b62090..e2e7d11 100644 --- a/IRCBot.icl +++ b/IRCBot.icl @@ -69,13 +69,13 @@ send [] chan w = (Ok (), chan, w) send [msg:msgs] {sChannel,rChannel} w # (rpt,i,sChannel,w) = send_MT TIMEOUT (toByteSeq msg) sChannel w | rpt <> TR_Success = (Error "Could not send message", {sChannel=sChannel,rChannel=rChannel}, w) -# (_, w) = sleep 500000 w +//# (_, w) = sleep 500000 w = send msgs {sChannel=sChannel,rChannel=rChannel} w - where - sleep :: !Int !*World -> (!Int, *World) - sleep i w = code { - ccall usleep "I:I:A" - } +// where +// sleep :: !Int !*World -> (!Int, *World) +// sleep i w = code { +// ccall usleep "I:I:A" +// } recv :: TCP_DuplexChannel *World -> (MaybeErrorString (Maybe String), TCP_DuplexChannel, *World) recv {sChannel,rChannel} w