From 920a7a22288c2086e4d853740318732c3f0c308d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Jul 2017 13:13:57 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index d6b399db9..8be6c6a62 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -71,13 +71,12 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r //printf("got hello from %s:%u\n",ipaddr!=0?ipaddr:"",argport); return(0); } - else*/ if ( strcmp(method,"sendmessage") == 0 ) + else*/ if ( strcmp(method,"sendmessage") == 0 && jobj(argjson,"userpass") == 0 ) { static char *laststr; char *newstr; bits256 pubkey = jbits256(argjson,"pubkey"); if ( bits256_nonz(pubkey) == 0 || bits256_cmp(pubkey,LP_mypub25519) == 0 ) { - jdelete(argjson,"userpass"); newstr = jprint(argjson,0); if ( laststr == 0 || strcmp(laststr,newstr) != 0 ) {