🐎 SendFunds checks for contains

This commit is contained in:
EntireTwix 2021-04-09 16:20:15 -07:00
parent 61a6d67177
commit 513e0bb643

View file

@ -65,7 +65,7 @@ public:
{
//cant send money to self, from self
if (a_name == b_name)
if (a_name == b_name || !users.contains(a_name) || !users.contains(b_name))
{
return false;
}