Fixed #add and autojoin and ghost functions.

Known bugs:
-Exceptions when getting random line from array