The script is changing the given %d%h%m given with the !ban syntax into seconds (ie. 360300) and using it as the ban time. And to report how long the ban has been set for to the channel using [duration <expire>]. Overly complicated this :/ or it just a scripting error<Me> .tcl newban "*!*@test.com" Me "No Spamming" 360300s none
<bot> Tcl:
<Me> .bans all
<bot> [10:45] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> Channel bans for #Channel: (! = not active, * = not placed by bot)
<Me> .tcl newban "*!*@test-2.com" Me "No Spamming" 360300 none
<bot> Tcl:
<Me> .bans all
<bot> [10:45] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test-2.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> ! [ 2] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<Me> .tcl newban "*!*@test-3.com" Me "No Spamming." 4h5m none
<bot> Tcl:
<Me> .bans all
<bot> [10:46] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test-3.com (expires at 10:50)
<bot> Me: No Spamming.
<bot> Created 10:46
<bot> ! [ 2] *!*@test-2.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> ! [ 3] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> Channel bans for #Channel: (! = not active, * = not placed by bot)
<Me> .tcl newban "*!*@test-4.com" Me "No Spamming." 0d4h5m none
<bot> Tcl:
<Me> .bans all
<bot> [10:47] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test-4.com (perm)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 2] *!*@test-3.com (expires at 10:50)
<bot> Me: No Spamming.
<bot> Created 10:46
<bot> ! [ 3] *!*@test-2.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> ! [ 4] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> Channel bans for #Channel: (! = not active, * = not placed by bot)
<Me> .tcl newban "*!*@test-5.com" Me "No Spamming." 4h none
<bot> Tcl:
<Me> .bans all
<bot> [10:47] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test-5.com (expires at 10:51)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 2] *!*@test-4.com (perm)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 3] *!*@test-3.com (expires at 10:50)
<bot> Me: No Spamming.
<bot> Created 10:46
<bot> ! [ 4] *!*@test-2.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> ! [ 5] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> Channel bans for #Channel: (! = not active, * = not placed by bot)
<Me> .tcl newban "*!*@test-6.com" Me "No Spamming." 4h0m none
<bot> Tcl:
<Me> .bans all
<bot> [10:47] #Me# bans all
<bot> Global bans: (! = not active on #Channel)
<bot> ! [ 1] *!*@test-6.com (expires at 10:51)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 2] *!*@test-5.com (expires at 10:51)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 3] *!*@test-4.com (perm)
<bot> Me: No Spamming.
<bot> Created 10:47
<bot> ! [ 4] *!*@test-3.com (expires at 10:50)
<bot> Me: No Spamming.
<bot> Created 10:46
<bot> ! [ 5] *!*@test-2.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> ! [ 6] *!*@test.com (expires in 250 days)
<bot> Me: No Spamming
<bot> Created 10:45
<bot> Channel bans for #Channel: (! = not active, * = not placed by bot)

Working great now
