So far I have made this, but it does not seem to work...

on *:TEXT:!banhammer *:#brozerian: {
var %user $nick
if ($nick isop #) {
if ($2 == null) {
msg $chan /me > Please supply the user you would like to strike with the ban hammer.
else {
msg $chan /me > The user $2 has been striked by the ban hammer!
msg $chan /ban $2

I'm a noob, please do not judge and any help is greatly appreciated.