This does the same thing yours does
banall { var %b = $nick(#,0) say 4You are about to get pooned cz I activated my banall command :D while (%b) { ban $nick(#,%b) Dec %b } }
Your if does absolutely nothing, and you have an extra bracket.