Bug fixed in the 'announce' operation.

Bad arg passed to the publish_server() method and also some bugs in the method itself. Not enough tested, now fixed.