mIRC Home    About    Download    Register    News    Help

Print Thread
Hot to UNBAN time to time in a BOT ? #133924 26/10/05 11:27 PM
Joined: Oct 2005
Posts: 4
R
rhercules Offline OP
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

Re: Hot to UNBAN time to time in a BOT ? #133925 26/10/05 11:45 PM
Joined: Sep 2005
Posts: 73
D
dood Offline
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.

Re: Hot to UNBAN time to time in a BOT ? #133926 27/10/05 12:15 AM
Joined: Oct 2005
Posts: 4
R
rhercules Offline OP
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

Re: Hot to UNBAN time to time in a BOT ? #133927 27/10/05 03:49 AM
Joined: Sep 2005
Posts: 73
D
dood Offline
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.
Re: Hot to UNBAN time to time in a BOT ? #133928 27/10/05 12:54 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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