diff options
author | alfred <alfred@FreeBSD.org> | 2003-12-28 17:12:58 +0800 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2003-12-28 17:12:58 +0800 |
commit | cc32479d627f1528f3744a86e1773fd96af52b16 (patch) | |
tree | 9a589d6ec6936fe3deb9294deadb56a9fcfff256 /irc/irssi | |
parent | 2cb4dc44f3cfa2fe6218d40eaaebeedc0c826661 (diff) | |
download | freebsd-ports-gnome-cc32479d627f1528f3744a86e1773fd96af52b16.tar.gz freebsd-ports-gnome-cc32479d627f1528f3744a86e1773fd96af52b16.tar.zst freebsd-ports-gnome-cc32479d627f1528f3744a86e1773fd96af52b16.zip |
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')
-rw-r--r-- | irc/irssi/files/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/irc/irssi/files/patch-aa b/irc/irssi/files/patch-aa new file mode 100644 index 000000000000..3703ad902d46 --- /dev/null +++ b/irc/irssi/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); + } |