Author Topic: TempBan  (Read 3493 times)

ZeleD

  • Guest
TempBan
« on: February 07, 2005, 06:38:21 AM »
Hey!

Anyone got a TempBan script for

ice?

I tried making my own, but cant get it working

Function tempban(nick,reason,channel,time,ServerNumber)


     SendCommand "//BAN " + channel + " "+ host
     SendCommand "//KICK "+ channel + " "+ nick + " "+ reason
End

Function

Now, I need a way to generate a random number for a timer ID


For the popup I

got

..TempBan: $reason=$$?="Reason" | $tid=$$?="Time (seconds)" | tempban($nick,$reason,$tid)

I want it to ask

for the reason and yime in seconds

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
TempBan
« Reply #1 on: February 21, 2005, 09:10:24 AM »
If you are using IceChat 5.50, you can use the $rnd()

identifier to create a random number. You can also use the $mask() identifier to get your proper ban mask.

Lets say

you add this to the popup menu in the nicklist.

Create an alias for timed ban called /tb, with these 2

lines.
Code: [Select]

/ban $1 $2
/timer $rnd(100) 1 $$?="Ban Length Seconds" /mode $1 -b  

$2


$1 would be the channel, and $2 would be the ban mask, which gets passed to them by the

popup.

And then add this to your Nicklist Popup Menu.
Code: [Select]

.TempBan:/kick # $nick

$$?="Ban Reason" | /tb # $mask($fullhost,3)


The hosts must be showing in the

nick list for $fullhost to get a value for the Nicklist Popup.

Btw, sorry for taking so long to respond, but I didnt

see the message until today :)
The IceChat God