1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

-various little things

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 2016-08-20 14:47:40 +02:00
parent 484b6440dc
commit 624709914b
5 changed files with 23 additions and 5 deletions

16
place/notify.c Normal file
View file

@ -0,0 +1,16 @@
// typical quiet pubsub place for receiving git2psyc notifications
#include <net.h>
#define NAME "notify"
#define SILENT
#define PLACE_HISTORY_EXPORT
#define HISTORY_METHOD "_notice_update"
#define HISTORY_GLIMPSE 4
// allow notifications from anywhere.. you may want to restrict this.
// see wikinotify.c and http://about.psyc.eu/create_place about that.
#define ALLOW_EXTERNAL
#include <place.gen>

View file

@ -10,13 +10,14 @@
#endif #endif
#define NAME "remoTor" #define NAME "remoTor"
#define PRIVATE //#define PRIVATE
#define SECURE #define SECURE
#define SILENT
//#define RESTRICTED //#define RESTRICTED
#define PLACE_HISTORY_EXPORT #define PLACE_HISTORY_EXPORT
#define HISTORY_GLIMPSE 7 #define HISTORY_GLIMPSE 7
#define HISTORY_METHOD "_warning_remotor" #define HISTORY_METHOD "_notice"
#ifdef BRAIN #ifdef BRAIN
# define ALLOW_EXTERNAL_FROM "psyc://psyced.org" # define ALLOW_EXTERNAL_FROM "psyc://psyced.org"

View file

@ -102,7 +102,7 @@ void sender_verification(string sourcehost, mixed targethost)
// gets called during socket logon // gets called during socket logon
int logon(int failure) { int logon(int failure) {
string t; mixed t;
sAuthHosts(([ ])); // reset authhosts sAuthHosts(([ ])); // reset authhosts
legal_senders = ([ ]); legal_senders = ([ ]);
instate = ([ "_INTERNAL_origin" : ME ]); instate = ([ "_INTERNAL_origin" : ME ]);
@ -141,7 +141,7 @@ int logon(int failure) {
unless(isServer()) { unless(isServer()) {
emit("|\n"); // initial greeting emit("|\n"); // initial greeting
if (sizeof(verify_queue)) { if (sizeof(verify_queue)) {
foreach(mixed t : verify_queue) { foreach(t : verify_queue) {
sender_verification(t[0], t[1]); sender_verification(t[0], t[1]);
} }
verify_queue = ({ }); verify_queue = ({ });

View file

@ -39,7 +39,7 @@
#define PSYCPARSE_STATE_GREET 3 #define PSYCPARSE_STATE_GREET 3
#define DISPATCHERROR(reason) { \ #define DISPATCHERROR(reason) { \
debug_message("SPYC DISPATCH ERROR: " reason); \ debug_message("SPYC DISPATCH ERROR: " reason "\n"); \
croak("_error_dispatch", "dispatch error: " \ croak("_error_dispatch", "dispatch error: " \
reason); \ reason); \
return; \ return; \

View file

@ -758,6 +758,7 @@ case "_message_echo_private":
} }
return 0; // dont walk into _message_public if !pal return 0; // dont walk into _message_public if !pal
#else #else
if (!objectp(source)) vars["_nick_target"] = nick; //FIXME BETTER
break; break;
#endif #endif
case "_message_public_question": case "_message_public_question":