Skip to content
Snippets Groups Projects
Commit d5e8af7a authored by rswindell's avatar rswindell
Browse files

Added 2-second delay after each message line is sent to IRCd

Cyan's suggestion due to IRCd throttling clients that send too much text in a
short period.
parent 04cc6cbb
Branches
Tags
No related merge requests found
...@@ -106,6 +106,8 @@ function send(msg) ...@@ -106,6 +106,8 @@ function send(msg)
log("Sending: " + msg); log("Sending: " + msg);
if(!my_server.send("PRIVMSG "+channel+" :"+expand_tabs(msg)+"\r\n")) if(!my_server.send("PRIVMSG "+channel+" :"+expand_tabs(msg)+"\r\n"))
alert("send failure"); alert("send failure");
else
mswait(2000); // Cyan: IRCd throttles clients that send text to the server too quickly
} }
function expand_tabs(msg) function expand_tabs(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment