I'm guessing you have misinterpreted what this script does. When one of your contacts/friends goes offline, your computer will block them temporarily. When they come online, the contact will automatically be unblocked. There is no 'hacking' at all, the only thing this script is doing is blocking/unblocking contacts.