mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- add recoding of offline messages
- add more MASTER_SITES - push MASTER_SITES_SOURCEFORGE to the end of MASTER_SITES PR: 38650 Submitted by: MAINTAINER
This commit is contained in:
parent
d690cbcf42
commit
21bd1a347e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62116
4 changed files with 78 additions and 4 deletions
|
@ -7,9 +7,13 @@
|
||||||
|
|
||||||
PORTNAME= ysm
|
PORTNAME= ysm
|
||||||
PORTVERSION= 7.2.7.1
|
PORTVERSION= 7.2.7.1
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
MASTER_SITES= ftp://vampiro.rootshell.ru/pub/warez/ \
|
||||||
ftp://vampiro.rootshell.ru/pub/warez/
|
http://vampiro.rootshell.ru/ \
|
||||||
|
ftp://ftp.treasury.ru/pub/unix/ \
|
||||||
|
http://www.treasury.ru/ \
|
||||||
|
${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
DISTNAME= ysmv7_2_7_1
|
DISTNAME= ysmv7_2_7_1
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
|
@ -11,3 +11,36 @@
|
||||||
data,
|
data,
|
||||||
&data_conv,
|
&data_conv,
|
||||||
YSM_ICONV_MAXLEN) < 0 )
|
YSM_ICONV_MAXLEN) < 0 )
|
||||||
|
@@ -2638,6 +2638,7 @@
|
||||||
|
/* offline message variables */
|
||||||
|
int uin,mlen;
|
||||||
|
char *message,MsgType,MsgFlags,Msglen[2];
|
||||||
|
+ char *data_conv = 0;
|
||||||
|
|
||||||
|
/* its a TLV(1) at the very beggining, always. */
|
||||||
|
tsize += 4;
|
||||||
|
@@ -2745,13 +2746,22 @@
|
||||||
|
"\nMessage received when you were %soffline%s:\n",
|
||||||
|
BRIGHT_BLUE,
|
||||||
|
NORMAL);
|
||||||
|
-
|
||||||
|
+#ifdef YSM_USE_ICONV
|
||||||
|
+ if( YSM_Iconv( YSM_SETTING_CHARSET_TRANS,
|
||||||
|
+ YSM_SETTING_CHARSET_LOCAL,
|
||||||
|
+ message,
|
||||||
|
+ &data_conv,
|
||||||
|
+ YSM_ICONV_MAXLEN) < 0 )
|
||||||
|
+#endif
|
||||||
|
+ { data_conv = strdup (message); }
|
||||||
|
+
|
||||||
|
YSM_DisplayMsg (YSM_MESSAGE_NORMAL,
|
||||||
|
uin,
|
||||||
|
0x0,
|
||||||
|
- mlen, message,
|
||||||
|
+ mlen, data_conv,
|
||||||
|
YSM_Query->NickName,
|
||||||
|
!YSM_Query ? 0x0 : YSM_Query->LogFlag );
|
||||||
|
+ free(data_conv);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,13 @@
|
||||||
|
|
||||||
PORTNAME= ysm
|
PORTNAME= ysm
|
||||||
PORTVERSION= 7.2.7.1
|
PORTVERSION= 7.2.7.1
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
MASTER_SITES= ftp://vampiro.rootshell.ru/pub/warez/ \
|
||||||
ftp://vampiro.rootshell.ru/pub/warez/
|
http://vampiro.rootshell.ru/ \
|
||||||
|
ftp://ftp.treasury.ru/pub/unix/ \
|
||||||
|
http://www.treasury.ru/ \
|
||||||
|
${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
DISTNAME= ysmv7_2_7_1
|
DISTNAME= ysmv7_2_7_1
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
|
@ -11,3 +11,36 @@
|
||||||
data,
|
data,
|
||||||
&data_conv,
|
&data_conv,
|
||||||
YSM_ICONV_MAXLEN) < 0 )
|
YSM_ICONV_MAXLEN) < 0 )
|
||||||
|
@@ -2638,6 +2638,7 @@
|
||||||
|
/* offline message variables */
|
||||||
|
int uin,mlen;
|
||||||
|
char *message,MsgType,MsgFlags,Msglen[2];
|
||||||
|
+ char *data_conv = 0;
|
||||||
|
|
||||||
|
/* its a TLV(1) at the very beggining, always. */
|
||||||
|
tsize += 4;
|
||||||
|
@@ -2745,13 +2746,22 @@
|
||||||
|
"\nMessage received when you were %soffline%s:\n",
|
||||||
|
BRIGHT_BLUE,
|
||||||
|
NORMAL);
|
||||||
|
-
|
||||||
|
+#ifdef YSM_USE_ICONV
|
||||||
|
+ if( YSM_Iconv( YSM_SETTING_CHARSET_TRANS,
|
||||||
|
+ YSM_SETTING_CHARSET_LOCAL,
|
||||||
|
+ message,
|
||||||
|
+ &data_conv,
|
||||||
|
+ YSM_ICONV_MAXLEN) < 0 )
|
||||||
|
+#endif
|
||||||
|
+ { data_conv = strdup (message); }
|
||||||
|
+
|
||||||
|
YSM_DisplayMsg (YSM_MESSAGE_NORMAL,
|
||||||
|
uin,
|
||||||
|
0x0,
|
||||||
|
- mlen, message,
|
||||||
|
+ mlen, data_conv,
|
||||||
|
YSM_Query->NickName,
|
||||||
|
!YSM_Query ? 0x0 : YSM_Query->LogFlag );
|
||||||
|
+ free(data_conv);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue