summaryrefslogtreecommitdiffstats
path: root/irc/irssi-devel
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-12-28 09:12:58 +0000
committeralfred <alfred@FreeBSD.org>2003-12-28 09:12:58 +0000
commitcc32479d627f1528f3744a86e1773fd96af52b16 (patch)
tree9a589d6ec6936fe3deb9294deadb56a9fcfff256 /irc/irssi-devel
parent2cb4dc44f3cfa2fe6218d40eaaebeedc0c826661 (diff)
downloadFreeBSD-ports-cc32479d627f1528f3744a86e1773fd96af52b16.zip
FreeBSD-ports-cc32479d627f1528f3744a86e1773fd96af52b16.tar.gz
Add a patch to check for the environment variable IRSSI_NOTHROTTLE
to disable throttling. Submitted by: Chris Jones <cjones@gruntle.org>
Diffstat (limited to 'irc/irssi-devel')
-rw-r--r--irc/irssi-devel/files/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/irc/irssi-devel/files/patch-aa b/irc/irssi-devel/files/patch-aa
new file mode 100644
index 0000000..3703ad9
--- /dev/null
+++ b/irc/irssi-devel/files/patch-aa
@@ -0,0 +1,20 @@
+--- src/irc/core/irc.c.orig Fri Oct 10 17:30:03 2003
++++ src/irc/core/irc.c Sat Dec 27 22:20:56 2003
+@@ -108,9 +108,14 @@
+ int send_now;
+
+ g_get_current_time(&now);
+- send_now = g_timeval_cmp(&now, &server->wait_cmd) >= 0 &&
+- (server->cmdcount < server->max_cmds_at_once ||
+- server->cmd_queue_speed <= 0);
++
++ if (getenv("IRSSI_NOTHROTTLE")) {
++ send_now = TRUE;
++ } else {
++ send_now = g_timeval_cmp(&now, &server->wait_cmd) >= 0 &&
++ (server->cmdcount < server->max_cmds_at_once ||
++ server->cmd_queue_speed <= 0);
++ }
+
+ irc_send_cmd_full(server, cmd, send_now, FALSE, FALSE);
+ }
OpenPOWER on IntegriCloud