I'm trying to set different types of bans that I'm missing and that could be useful, but the command is different depending on where you're banning, for example:

Clicking on the nickname list, I get a simple ban on the address:

/ban $$1 2

If the nickname is registered, how do I ban the registered nickname?

Instead, on a script with input, the command is:

if (!kb isin $1) { /ban # $2 2 }

Again, how can I ban a nickname's account if it's registered?

And finally, there's another script that automatically bans, like this:

on @*:TEXT:*add me on*:#Mairel: { .ban $chan $nick 2 }

Since I've set the channel so that only registered nicknames can post, how do I ban the registered account?