Match nick last when checking url

Closes #796