mIRC Home    About    Download    Register    News    Help

Print Thread
R
rhercules
rhercules
R
I want a simpl code that unban users after 15 minutes of ban to put in my BOT. How can i do this ?

Best Regards

D
dood
dood
D
Is it an mIRC bot?

If so, use this: ban -u900 <channel> <nick|address>

Where 900 is 15 minutes in seconds.

R
rhercules
rhercules
R
Ok, but that dont unban the nick's in the ban list or unban ?
Because some bans are in IP others by Nick...
The code i want is to UNBAN BAN's from the chanel give by OP's 15m after the BAN was give... so that bans dont last forever. If i want for ever i use AKICK !!!!!

Best Regards

D
dood
dood
D
OK, I see where you are going.

If this is an mIRC bot, something along the lines of this should work:

Code:
on *:ban:#channel: {
  timer 1 900 mode -b # $banmask
}

Replace "#channel" with the correct channel.

If you are using something like an Eggdrop bot, go here for help with it.

You should note that is considered quite rude on IRC to remove a ban from another op.

Last edited by dood; 27/10/05 03:55 AM.
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Well, I'd say it depends on the channel and how the ops get along, for whether it's rude or not. My channel allows all ops to unban anyone except those we have had real problems with. We have never really had any issues with allowing that. Usually no one will unban without asking what the ban was for, anyhow.

But, if the ops all know the bans will only last 15 minutes, then they can either complain or accept it. Of course, the ops could simply add -u900 to their bans and they'd unban their own that way.


Link Copied to Clipboard