set_type_for_nick
Description:
Assigns an object type to a given nickname.
If the nickname already exists, then it reassigns it to a new object type.
Parameters:
nick |
The nickname for the object type |
type |
The object type |
Returns:
If the nick was previously assigned, the old type is returned. Otherwise, NONE. |