From 2654c50820eefaa73eae08c0376a00a56d07e258 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" Date: Fri, 8 May 2015 02:11:28 +0200 Subject: [PATCH 1/3] this is where ryuka can have paginated history for neat clients --- world/net/lastlog.c | 5 ++++- world/net/place/archetype.gen | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/world/net/lastlog.c b/world/net/lastlog.c index bcd81a5..6360857 100644 --- a/world/net/lastlog.c +++ b/world/net/lastlog.c @@ -82,7 +82,7 @@ logClip(maxlen, cutlen) { // TODO: logView *since* timestamp. see also user.c:disconnected() // // uh. vim lpc syntax file doesn't like default in variablenames. renamed. -logView(a, showingLog, defAmount) { +logView(a, showingLog, defAmount, offset) { string grep; int i, ll; @@ -141,6 +141,9 @@ logView(a, showingLog, defAmount) { P4(("\n%O :logView: %O\n", ME, _log)) unless (ll) ll = defAmount || 15; ll *= 4; + /* FIXME: here's where the _offset parameter needs to be considered + * but let's see if ryuka is serious about wanting to use this ;) + */ if (sizeof(_log) < ll) { ll = sizeof(_log); i = 0; diff --git a/world/net/place/archetype.gen b/world/net/place/archetype.gen index 5daa290..3f6c3b8 100644 --- a/world/net/place/archetype.gen +++ b/world/net/place/archetype.gen @@ -2468,7 +2468,7 @@ _request_history(source, mc, data, vars, b) { # endif # endif logView(vars["_match"] || vars["_parameter"] || vars["_amount"], - source); + source, 0, vars["_offset"]); sendmsg(source, "_echo_history"); // indicate end of history return 1; } From 034ad27ffdb3780442aedf22f2332d261c149e04 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" Date: Tue, 29 Sep 2015 15:55:57 +0200 Subject: [PATCH 2/3] ryuka asked for _offset in history to make a paginating client! --- world/net/lastlog.c | 5 ++++- world/net/place/archetype.gen | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/world/net/lastlog.c b/world/net/lastlog.c index bcd81a5..6360857 100644 --- a/world/net/lastlog.c +++ b/world/net/lastlog.c @@ -82,7 +82,7 @@ logClip(maxlen, cutlen) { // TODO: logView *since* timestamp. see also user.c:disconnected() // // uh. vim lpc syntax file doesn't like default in variablenames. renamed. -logView(a, showingLog, defAmount) { +logView(a, showingLog, defAmount, offset) { string grep; int i, ll; @@ -141,6 +141,9 @@ logView(a, showingLog, defAmount) { P4(("\n%O :logView: %O\n", ME, _log)) unless (ll) ll = defAmount || 15; ll *= 4; + /* FIXME: here's where the _offset parameter needs to be considered + * but let's see if ryuka is serious about wanting to use this ;) + */ if (sizeof(_log) < ll) { ll = sizeof(_log); i = 0; diff --git a/world/net/place/archetype.gen b/world/net/place/archetype.gen index 5daa290..3f6c3b8 100644 --- a/world/net/place/archetype.gen +++ b/world/net/place/archetype.gen @@ -2468,7 +2468,7 @@ _request_history(source, mc, data, vars, b) { # endif # endif logView(vars["_match"] || vars["_parameter"] || vars["_amount"], - source); + source, 0, vars["_offset"]); sendmsg(source, "_echo_history"); // indicate end of history return 1; } From 79eb39f12c366711ce4f9f5692700a53fe34753d Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" Date: Tue, 29 Sep 2015 16:06:56 +0200 Subject: [PATCH 3/3] + --- CHANGESTODO | 11 +++++++---- world/drivers/ldmud/master/accept.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGESTODO b/CHANGESTODO index 521312f..5234445 100644 --- a/CHANGESTODO +++ b/CHANGESTODO @@ -30,10 +30,6 @@ ________________________________________________________________________ ERQ could not resolve "symlynX". (it tries to resolve the irc:nick) -- psyced's memory of places joined is weird -- and neither the default - place from psyced.ini, nor the autojoin rooms in the irc client seem - to make a difference - - "invalid context" errors happen where local rooms send _context as string uniform while local users expect the object pointer. huh? @@ -3938,3 +3934,10 @@ edit.i now renamed into render.i because it renders psyc packets === 201105 ============================================================ net/spyc net/psyc tg added support for libpsyc aka PSYC syntax according to spec! +=== 2013, 2014 ======================================================== + various "onion" mods to support Tor hidden services + psyc federation over tor would however require further work + (and still doesn't address the many problems of federation) +=== 201509 ============================================================ +- fixed autojoin bug for psyc, telnet and webchat users + diff --git a/world/drivers/ldmud/master/accept.c b/world/drivers/ldmud/master/accept.c index 16c42dc..dec7288 100644 --- a/world/drivers/ldmud/master/accept.c +++ b/world/drivers/ldmud/master/accept.c @@ -22,7 +22,7 @@ #else # define AUTODETECT 0 # ifdef SPYC_PATH -# echo PSYC 1.0 will not work: libpsyc is not enabled in driver. +# echo libpsyc is not enabled in driver. Using old protocol parser instead. # endif #endif