diff options
author | Teddy Wing | 2017-08-20 14:02:33 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-20 15:15:14 +0200 |
commit | 3322958fa7b835df61cfe3c7147293da5a5c35a1 (patch) | |
tree | 5393d950ac70b1e631a7efcab0204cc81753f265 | |
parent | 44d8c54867a52381ec741a3b4365a91447059502 (diff) | |
download | sorbot-3322958fa7b835df61cfe3c7147293da5a5c35a1.tar.bz2 |
IRC: Speed up message transfer
Instead of waiting 1 second between posting messages, pause 0.2 seconds
for faster posting. This may cause flood concerns, but improves
responsiveness from commands that send multi-line responses, like Help
and Factorial.
-rw-r--r-- | src/IRC.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ import Plugin (matchPlugin, performPlugin) connectIRC :: B.ByteString -> Int -> T.Text -> IO () connectIRC host port nick = do - conn <- IRC.connectWithTLS host port 1 + conn <- IRC.connectWithTLS host port 0.2 let cfg = IRC.defaultIRCConf nick let cfg' = cfg { |