mIRC Homepage
Posted By: alhammer timed ban - 10/02/05 07:45 PM
Hey. I was just wondering, how do i set a time limit on a ban. I know that if you go into the channel modes dialog, you can set the time limit on a ban, so there must be a way to do it as a popup. For example, what would be the code to ban someone for 15 minutes. Also, does it go my seconds or minutes. Let me know please! Thanks in advance.
Posted By: tidy_trax Re: timed ban - 10/02/05 07:52 PM
You could use a /timer, but /ban has this functionality built in:

Code:
ban -u<time in seconds> channel type address


Eg:

Code:
//ban -u900 #channel 2 somenickname


If you want to kickban someone:

Code:
ban -ku<time in seconds> channel type nick reason


Eg:

Code:
//ban -ku900 #channel 2 somenickname You just got kickbanned for 15 minutes :o)
Posted By: alhammer Re: timed ban *DELETED* - 10/02/05 08:01 PM
Post deleted by alhammer
Posted By: mIRCManiac Re: timed ban - 10/02/05 08:08 PM
on *:TEXT:wd:#: {
if (%did.wd) return
set -u30 %did.wd $true
msg # wd
}
Posted By: alhammer Re: timed ban - 10/02/05 08:18 PM
Gracias (is that spelled right? I dont speak spanish. lol)
Posted By: Swami_Joe Re: timed ban - 27/02/05 12:25 AM
I was wondering, I want to do 2 types of kickbans..one for 4hours and one for 72 hours. Is 'u' the only variable for time durations..for seconds? is there any other variable for mins or hours?

72 hours is u259200 <--will that be recognized?

Also, I am wondering how mayb "types" of bans are there? 1,2,3,4 etc.. and what each type stand for? what is it if I ban type 3 or 4 or etc? Is there a webpage link with this information?

Thanks smile
Posted By: tidy_trax Re: timed ban - 27/02/05 01:29 AM
Seconds is the only type /ban recognises and yes your -u one will work.

You can find the address types by playing with $mask() (/help $mask)
© mIRC Discussion Forums