mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 4
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Oct 2005
Posts: 4
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

Joined: Sep 2005
Posts: 73
D
Babel fish
Offline
Babel fish
D
Joined: Sep 2005
Posts: 73
Is it an mIRC bot?

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

Where 900 is 15 minutes in seconds.

Joined: Oct 2005
Posts: 4
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Oct 2005
Posts: 4
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

Joined: Sep 2005
Posts: 73
D
Babel fish
Offline
Babel fish
D
Joined: Sep 2005
Posts: 73
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard