pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/dircproxy-devel Don't insert "[] " into every sto...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abaa19338df1
branches:  trunk
changeset: 511973:abaa19338df1
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Apr 28 13:23:25 2006 +0000

description:
Don't insert "[] " into every stored message if "log_timestamp" is
set "no". Bump package revision because of this fix.

diffstat:

 chat/dircproxy-devel/Makefile         |   4 +-
 chat/dircproxy-devel/distinfo         |   3 +-
 chat/dircproxy-devel/patches/patch-ad |  51 +++++++++++++++++++++++++++++++++++
 3 files changed, 55 insertions(+), 3 deletions(-)

diffs (83 lines):

diff -r 1145ea602b62 -r abaa19338df1 chat/dircproxy-devel/Makefile
--- a/chat/dircproxy-devel/Makefile     Fri Apr 28 13:09:38 2006 +0000
+++ b/chat/dircproxy-devel/Makefile     Fri Apr 28 13:23:25 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2006/04/27 16:36:17 tron Exp $
+# $NetBSD: Makefile,v 1.8 2006/04/28 13:23:25 tron Exp $
 
 DISTNAME=      dircproxy-1.2.0-beta
 PKGNAME=       ${DISTNAME:S/-beta//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    chat
 MASTER_SITES=  http://dircproxy.securiweb.net/pub/1.2/
 EXTRACT_SUFX=  .tar.bz
diff -r 1145ea602b62 -r abaa19338df1 chat/dircproxy-devel/distinfo
--- a/chat/dircproxy-devel/distinfo     Fri Apr 28 13:09:38 2006 +0000
+++ b/chat/dircproxy-devel/distinfo     Fri Apr 28 13:23:25 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2006/04/27 16:36:17 tron Exp $
+$NetBSD: distinfo,v 1.5 2006/04/28 13:23:25 tron Exp $
 
 SHA1 (dircproxy-1.2.0-beta.tar.bz) = d0979ad3711184fa581fe413c9e3ea156660ac56
 RMD160 (dircproxy-1.2.0-beta.tar.bz) = 08016210b245872f7c071e25d067f7ef1e97f17d
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 59870074b86f1150f904e10269c654719b506f29
 SHA1 (patch-ab) = c0e8706c0f1bb7a2c981d1140d1b1deb105c601b
 SHA1 (patch-ac) = c07df4e100c82e935c48b722da702e562def135b
+SHA1 (patch-ad) = 818d7f0ca0590f40dc2e46926236ba033cadbf0d
diff -r 1145ea602b62 -r abaa19338df1 chat/dircproxy-devel/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/dircproxy-devel/patches/patch-ad     Fri Apr 28 13:23:25 2006 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-ad,v 1.1 2006/04/28 13:23:25 tron Exp $
+
+--- src/irc_log.c.orig 2006-02-18 22:39:32.000000000 +0000
++++ src/irc_log.c      2006-04-28 14:06:01.000000000 +0100
+@@ -58,7 +58,7 @@
+ 
+ 
+ /* Log time format for strftime(3) */
+-#define LOG_TIME_FORMAT "%H:%M"
++#define LOG_TIME_FORMAT "[%H:%M] "
+ 
+ /* User log time format */
+ #define LOG_USER_TIME_FORMAT "[%d %b %H:%M] "
+@@ -952,13 +952,13 @@
+           diff = now - when;
+ 
+           if (diff < 82800L) {                /* Within 23 hours [hh:mm] */
+-            strftime(tbuf, sizeof(tbuf), "%H:%M", localtime(&when));
++            strftime(tbuf, sizeof(tbuf), "[%H:%M] ", localtime(&when));
+           } else if (diff < 518400L) {        /* Within 6 days [day hh:mm] */
+-            strftime(tbuf, sizeof(tbuf), "%a %H:%M", localtime(&when));
++            strftime(tbuf, sizeof(tbuf), "[%a %H:%M] ", localtime(&when));
+           } else if (diff < 25920000L) {      /* Within 300 days [d mon] */
+-            strftime(tbuf, sizeof(tbuf), "%d %b", localtime(&when));
++            strftime(tbuf, sizeof(tbuf), "[%d %b] ", localtime(&when));
+           } else {                            /* Otherwise [d mon yyyy] */
+-            strftime(tbuf, sizeof(tbuf), "%d %b %Y", localtime(&when));
++            strftime(tbuf, sizeof(tbuf), "[%d %b %Y] ", localtime(&when));
+           }
+         } else {
+           strftime(tbuf, sizeof(tbuf), LOG_TIME_FORMAT, localtime(&when));
+@@ -988,15 +988,15 @@
+       
+         /* Send the line */
+       if (event == IRC_LOG_MSG) {
+-        net_send(p->client_sock, ":%s PRIVMSG %s :[%s] %s\r\n", frm, to, tbuf, msg);
++        net_send(p->client_sock, ":%s PRIVMSG %s :%s%s\r\n", frm, to, tbuf, msg);
+       } else if (event == IRC_LOG_ACTION) {
+-        net_send(p->client_sock, ":%s PRIVMSG %s :\001ACTION [%s] %s\001\r\n", frm, to, tbuf, msg);
++        net_send(p->client_sock, ":%s PRIVMSG %s :\001ACTION %s%s\001\r\n", frm, to, tbuf, msg);
+       } else if (event == IRC_LOG_CTCP) {
+-        net_send(p->client_sock, ":%s PRIVMSG %s :\001%s [%s]%s%s\001\r\n", src, to, eventtext, tbuf, (strlen(msg) ? " " : ""), msg);
++        net_send(p->client_sock, ":%s PRIVMSG %s :\001%s %s%s%s\001\r\n", src, to, eventtext, tbuf, (strlen(msg) ? " " : ""), msg);
+       } else if (event == IRC_LOG_NOTICE) {
+         ircclient_send_notice(p, "%s", msg);
+       } else {
+-        net_send(p->client_sock, ":%s PRIVMSG %s :[%s] %s\r\n", src, to, tbuf, msg);
++        net_send(p->client_sock, ":%s PRIVMSG %s :%s%s\r\n", src, to, tbuf, msg);
+       }
+ 
+       free(ll);



Home | Main Index | Thread Index | Old Index