aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2017-08-20 14:02:33 +0200
committerTeddy Wing2017-08-20 15:15:14 +0200
commit3322958fa7b835df61cfe3c7147293da5a5c35a1 (patch)
tree5393d950ac70b1e631a7efcab0204cc81753f265 /src
parent44d8c54867a52381ec741a3b4365a91447059502 (diff)
downloadsorbot-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.
Diffstat (limited to 'src')
-rw-r--r--src/IRC.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IRC.hs b/src/IRC.hs
index 1c6a7f5..f02f76c 100644
--- a/src/IRC.hs
+++ b/src/IRC.hs
@@ -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
{