Ok, you make a boolean, lets call it HasSendCommand.
It should be set to false by default. As soon as your function sends the notification, set it to true.
In the receivenotification function, you have to check if HasSendCommand is true. If it is, it should be set to false again and the rest of the function should be ignored (because it was your own notification). If it is false, it was a notification of another person, so it should be parsed