summaryrefslogtreecommitdiffstats
path: root/main/dircproxy/1.1.0-less-lag-on-attach.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-14 14:47:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-14 14:47:51 +0000
commit5b217ffc21a3a78f24a6b491717ac95b0a1929ab (patch)
tree5ea53a2562c6547770cf502b7d4b585599df441a /main/dircproxy/1.1.0-less-lag-on-attach.patch
parent358c1f6ef7d9d2bd879594e9bef73ca3f69bf05c (diff)
downloadaports-5b217ffc21a3a78f24a6b491717ac95b0a1929ab.tar.bz2
aports-5b217ffc21a3a78f24a6b491717ac95b0a1929ab.tar.xz
main/dircproxy: upgrade to 1.2.0_rc1
Diffstat (limited to 'main/dircproxy/1.1.0-less-lag-on-attach.patch')
-rw-r--r--main/dircproxy/1.1.0-less-lag-on-attach.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/main/dircproxy/1.1.0-less-lag-on-attach.patch b/main/dircproxy/1.1.0-less-lag-on-attach.patch
deleted file mode 100644
index 2eb3998db..000000000
--- a/main/dircproxy/1.1.0-less-lag-on-attach.patch
+++ /dev/null
@@ -1,53 +0,0 @@
---- a/src/irc_client.c 2005-01-06 02:48:12.964637427 +0100
-+++ b/src/irc_client.c.lessflood 2005-01-06 02:47:50.433376383 +0100
-@@ -1910,13 +1910,34 @@
- /* Recall channel log files, and get channel topic and members from server */
- if (p->channels) {
- struct ircchannel *c;
-+ unsigned int cnames_length = 0;
-+ char *cnames = 0;
-+
-+ c = p->channels;
-+ while (c) {
-+ if (!c->inactive && !c->unjoined) {
-+ cnames_length += strlen(c->name) + 1; // +1 to hold comma
-+ }
-+
-+ c = c->next;
-+ }
-+
-+ if(cnames_length)
-+ {
-+ cnames = (char *)malloc(cnames_length + 1);
-+ memset(cnames, 0, cnames_length + 1);
-+ }
-
- c = p->channels;
- while (c) {
- if (!c->inactive && !c->unjoined) {
- ircclient_send_selfcmd(p, "JOIN", ":%s", c->name);
-- ircserver_send_command(p, "TOPIC", ":%s", c->name);
-- ircserver_send_command(p, "NAMES", ":%s", c->name);
-+ if(cnames_length) {
-+ if(c == p->channels) // first channel in list
-+ sprintf(cnames, "%s", c->name);
-+ else
-+ sprintf(cnames, "%s,%s", cnames, c->name);
-+ }
-
- if (p->conn_class->chan_log_enabled) {
- irclog_autorecall(p, c->name);
-@@ -1926,6 +1948,13 @@
-
- c = c->next;
- }
-+
-+ if(cnames_length)
-+ {
-+ ircserver_send_command(p, "TOPIC", ":%s", cnames);
-+ ircserver_send_command(p, "NAMES", ":%s", cnames);
-+ free(cnames);
-+ }
- }
-
- /* Recall private log file */