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 ) {