mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
replace the local server nickspace by autoalias!
This commit is contained in:
parent
a4e16cd2c4
commit
8e4e990261
46 changed files with 246 additions and 101 deletions
|
@ -11,13 +11,11 @@
|
|||
|
||||
#define RANDHEXSTRING sprintf("%x", random(__INT_MAX__))
|
||||
|
||||
// maybe we should expect psyc usage peak around 2030?
|
||||
// or will psyc reform its protocol by then anyway?
|
||||
// ok.. let's go for 2009 so we can renovate time formats
|
||||
// around 2020.. by the way, 2009-02-14 is a saturday, so
|
||||
// we'll be having a hot friday night party for psyc epoch!
|
||||
//
|
||||
#define PSYC_EPOCH 1234567890 // 2009-02-14 00:31:30 CET
|
||||
// maybe we should expect psyc usage peak around 2030
|
||||
//efine PSYC_EPOCH 1234567890 // 2009-02-14 00:31:30 CET
|
||||
#define PSYC_EPOCH 1440444041 // 2015-08-24 21:20:41 CET (Monday)
|
||||
// 2000000000 is 2033-05-18 05:33:20 CET (Wednesday)
|
||||
// 2002002002 is 2033-06-10 09:40:02 CET (Friday)
|
||||
|
||||
// TODO: new driver will be able to combine \n, too
|
||||
// new expat parser will also be able to combine >
|
||||
|
@ -230,6 +228,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef EXPERIMENTAL
|
||||
# define USE_AUTOALIAS
|
||||
// fippo's brilliant single-user channel emulation for jabber MUCs
|
||||
// unfortunately it provides no advantages over the old method, yet.
|
||||
// would be cool to cache a member list at least! TODO
|
||||
|
@ -243,6 +242,7 @@
|
|||
//# ifndef __PIKE__
|
||||
//# define USE_LIVING
|
||||
//# endif
|
||||
# define USE_THE_NICK
|
||||
#endif
|
||||
|
||||
#ifdef __NO_SRV__ // since psyclpc 4.0.4
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <net.h>
|
||||
#include <storage.h>
|
||||
#include <status.h>
|
||||
#include <url.h>
|
||||
#include <uniform.h>
|
||||
|
||||
#ifdef BRAIN
|
||||
|
||||
|
|
|
@ -19,9 +19,10 @@
|
|||
#define UHostPort 12 // just host:port (and transport)
|
||||
#define URoot 13 // root UNI of peer/server
|
||||
#define USlashes 14 // the // if the protocol has them
|
||||
//efine UCircuit 15 // scheme:host:port
|
||||
#define UNick 15 // whatever works as a nickname
|
||||
//efine UCircuit 16 // scheme:host:port
|
||||
// (not provided by parse_uniform)
|
||||
#define USize 15
|
||||
#define USize 16
|
||||
|
||||
#define UName(uniform) (uniform[UUser] || uniform[UResource][1 ..])
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue