| View previous topic :: View next topic |
| Author |
Message |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sun Dec 09, 2007 8:32 am Post subject: [SOLVED] ban times with newban and newchanban |
|
|
I've been adding bans by dcc +ban for a while. When i started using a script to add them i noticed that some of the bantimes where off a bit, I think i've got the syntax wrong for the time option in newban/newchanban. I played around in dcc chat with the .tcl newban command. This was the output: | Quote: | <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) | 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
Working great now ) thanks for all the help. _________________ TCL the misunderstood
Last edited by TCL_no_TK on Sun Dec 09, 2007 10:01 am; edited 1 time in total |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Sun Dec 09, 2007 8:37 am Post subject: |
|
|
the newban and newchanban time is setted in minutes, nothing else.
If you want to add the time formating (eg 3d2h), you have to create a tcl wich is able to parse the string and convert it in minutes. _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sun Dec 09, 2007 8:41 am Post subject: |
|
|
Thanks thought it would be the same as dcc +ban  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|