The Hostmasks plugin allows one to retrieve idents, hostnames, and 
banmasks for users, useful for nested commands.