Author Topic: Time Ban  (Read 5107 times)

capi

  • Newbie
  • *
  • Posts: 3
Time Ban
« on: July 05, 2006, 05:47:30 PM »
Sorry for not english speak

Bonjour, j'aimerais savoir il est possible de connetre un code simple pour faire un Time Ban?

thank you

capi

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Time Ban
« Reply #1 on: July 06, 2006, 01:04:56 AM »
I am guessing you want a timed ban.
IceChat does not internally have such a feature, you will need to make a timer to do it for you.
So you would need to use the /timer command to do that.
But that timer will turn off if you disconnect from the server.
The IceChat God

capi

  • Newbie
  • *
  • Posts: 3
Re: Time Ban
« Reply #2 on: July 06, 2006, 01:35:37 AM »
well. but which is the best orders?  Round of
Quote
Ban + ($reasonbox) > Kick > Timer + ($dialbox) second > unban

capi

"Google translate"

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Time Ban
« Reply #3 on: July 06, 2006, 09:37:39 AM »
Ok, first I made an alias called "tb", so you can use the /tb command for a timed ban.
Add a new alias called tb, and here is the 2 lines of code for it.
Code: [Select]
/ban $1 $2
/timer $rnd(100) 1 $$?="Ban Length Seconds" /mode $1 -b  $2

Then add an item to the Nicklist Popup menu, at the end, or wherever you wish it.
Code: [Select]
.TimedBan:/kick # $nick $$?="Ban Reason" | /tb # $mask($fullhost,3)

You can then select the TimedBan item from the nicklist popup menu, and it will ask you for the Ban Reason, and then ask for how long the ban will last in seconds.
The IceChat God

capi

  • Newbie
  • *
  • Posts: 3
Re: Time Ban
« Reply #4 on: July 06, 2006, 03:04:59 PM »
i'm sorry
but, i'm not understand for first command
Quote
Quote from: Snerf
Ok, first I made an alias called "tb", so you can use the /tb command for a timed ban.
Add a new alias called tb, and here is the 2 lines of code for it.
Code: [Select]
/ban $1 $2
/timer $rnd(100) 1 $$?="Ban Length Seconds" /mode $1 -b  $2

please detail

thx

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Time Ban
« Reply #5 on: July 07, 2006, 06:42:36 PM »
You need to open the Alias Editor, and add a new alias called /tb, and add those 2 lines under the Description Box.
The IceChat God