Don't ever just run commands recommended by some person online without first trying to understand what they do. You can do a few things to understand this stored procedure before running it, e.g.:
EXEC msdb.dbo.sp_helptext 'sp_set_sqlagent_properties';
For all of my machines, local_host_server property is NULL according to:
EXEC msdb.dbo.sp_get_sqlagent_properties;
So to undo this, you might try:
EXEC msdb.dbo.sp_set_sqlagent_properties @local_host_server = NULL;
However it seems like this stored procedure is undocumented, so that is the best I can offer. I would point you to online documentation (which you may also consider searching for yourself the next time someone offers that you run some unrecognized piece of code), but the search will turn up empty. If someone says to run something and your search turns up empty, that is probably even more reason to be hesitant about just running it.
And just as an observation, since it seems like you didn't notice any behavior change, you may be jumping the gun on scolding anyone for "screwing up your computer." If I told you to fix your iPhone by smashing it with a hammer, would I be to blame for that too? Even if there was no damage because you didn't swing hard enough?
N''(to reset it) if you can't just undo it from server management tools in the agent properties.