From d5e8af7aa87c4072309e748acbfe28c245ceb1a0 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 1 Aug 2007 00:39:26 +0000
Subject: [PATCH] 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.

---
 exec/ircmsg.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/exec/ircmsg.js b/exec/ircmsg.js
index df68d54c51..738a28bcb6 100644
--- a/exec/ircmsg.js
+++ b/exec/ircmsg.js
@@ -106,6 +106,8 @@ function send(msg)
 	log("Sending: " + msg);
 	if(!my_server.send("PRIVMSG "+channel+" :"+expand_tabs(msg)+"\r\n"))
 		alert("send failure");
+	else
+		mswait(2000);	// Cyan: IRCd throttles clients that send text to the server too quickly
 }
 
 function expand_tabs(msg)
-- 
GitLab