Split code for special variables to a new method
Correctly use display name instead of userid

Fix #70