maybe something along the lines of this might help:
on *:DIALOG:dialogname:SCLICK:id:{
if ($did(id).sel != null) {
if ($input(No Text Selected,ok) = $true) || ($input(No Text Selected,ok) != $true) {
goto end
}
else {
tokenize 32 $did(id).seltext
;Now $1 = 2 $2 = *!*@someident.com $3 = nick1,nick2
;If you want to ban the nick you need to find the charecter
;number of comma (,)and use: tokenize number
var %banmask = $2
mode #channel +b %banmask
}
:end
}

you would have to change:
#channel to channel
and
id in $did(id) to the id number

hope that helped a little
wink