mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
don't panic about idn
This commit is contained in:
parent
c64d8cc3c6
commit
eba0982e03
5 changed files with 10 additions and 2 deletions
|
@ -16,7 +16,8 @@ psyconf - a configuration tool for PSYCED
|
|||
|
||||
Usage: psyconf [ <file> ]
|
||||
|
||||
The default configuration file used is /etc/psyced.ini
|
||||
The default configuration file used is either ./psyced.ini
|
||||
or /etc/psyc/psyced.ini
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
# (sort of like cgi) with LDMUD. but by now LDMUD knows how
|
||||
# to do MD5 and SHA1 itself, so they are not being used.
|
||||
#
|
||||
# consult http://about.psyc.eu/spawn for instructions
|
||||
#
|
||||
use Digest::MD5 qw(md5 md5_hex);
|
||||
|
||||
$| = 1;
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
# (sort of like cgi) with LDMUD. but by now LDMUD knows how
|
||||
# to do MD5 and SHA1 itself, so they are not being used.
|
||||
#
|
||||
# consult http://about.psyc.eu/spawn for instructions
|
||||
#
|
||||
use Digest::SHA1 qw(sha1 sha1_hex);
|
||||
|
||||
$| = 1;
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
# define NAMEPREP(s) FROM_UTF8(idna_stringprep(TO_UTF8(s), STRINGPREP_NAMEPREP))
|
||||
# define RESOURCEPREP(s) FROM_UTF8(idna_stringprep(TO_UTF8(s), STRINGPREP_XMPP_RESOURCEPREP))
|
||||
#else
|
||||
# echo Warning: using lower_case instead of idna_stringprep!
|
||||
# define NODEPREP(s) lower_case(s)
|
||||
# define NAMEPREP(s) lower_case(s)
|
||||
# define RESOURCEPREP(s) (s)
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
#include "presence.h"
|
||||
#include <time.h>
|
||||
|
||||
#if !__EFUN_DEFINED__(idna_stringprep)
|
||||
# echo Warning: idn support as recommended for XMPP is missing from LPC driver. will try lower_case() instead. usually works.
|
||||
#endif
|
||||
|
||||
// necessary to implement a minimum set of commands for remote jabber users
|
||||
// #undef USER_PROGRAM
|
||||
// #undef MYNICK
|
||||
|
|
Loading…
Reference in a new issue