Make sure there aren't any custom /join aliases causing this error by either unloading all scripts or by turning off your remotes.

sparta:
Typing /join #$anything shouldn't evaluate $anything as an identifier unless the /join command is prefixed with a second /.