try this : bind pub n !gline PubAdd:G-Line proc PubAdd:G-Line {nick host hand chan text} { set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }] set items [split $text] if {[llength $items] < 1 } { putserv "notice $nick :Syntax\: !gline \<duration\> \<ident@host\> \<reason\>...