This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Ban to bot

Old posts that have not been replied to for several years.
Locked
z
zlobus
Voice
Posts: 16
Joined: Sun Sep 12, 2004 12:07 pm

Ban to bot

Post by zlobus »

Code: Select all

newchanban $chan *!$banident[string tolower [string range $uhost [string first @ $uhost] end]] quitban $qb_reason $qb_bantime
it's my quitban script. So, bot sets ban to channel, and to bot (perm)
But i want to set ONLY to partyline, to bot, but not to channel.
So when banned user will join the channel, only then he will be banned by bot.
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Just have +dynamicbans set for that channel and the bot won't set the ban on the channel if there isn't someone matching the ban on it.
MaSsKilla

#eggdrop
Undernet
z
zlobus
Voice
Posts: 16
Joined: Sun Sep 12, 2004 12:07 pm

Post by zlobus »

+dynamicbans is already set. Maybe you didn't understand me....
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Maybe I didn't .. so explain it better.
MaSsKilla

#eggdrop
Undernet
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Slennox has a script called quitban.tcl that already does these functions. you can find it here.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

What do you mean by you only want to set the ban on partyline? Does that make any relevant sense.

Newchanban will match all the ips of the users in the channel and kick all the users on that channel which match that ban. You can use them as 'sticky' or non-sticky see tcl-commands.doc for more information.

You cannot set a ban on partyline. Partyline is a virtual place to interact with linked bots and seperate bots via DCC and it has no relation with channels, so hence you cannot add a channel ban on partyline. I hope I am clear now.

Secondly if you don't want the ban to be always kept on the channel but still in the bots banlist use +dynamicbans on that channel as mentioned and see the 'sticky', or 'stick' command in newchanban for more options. :mrgreen:

+Dynamicbans will only ban that user when he joins the channel which he is banned on, if some op removes that ban, then that ban will not be enforced again by the bot (only if +enforcebans is set). It will only reban and place the ban in the channels banlist when that person rejoins the channel the second time and so on....

Hint: If you already have +dynamicbans set and +enforcebans is also there, then -enforcebans to make dynamicbans enabled.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

[07:59:15] <MeTroiD> .+ban
[07:59:15] <Q12> Usage: +ban <hostmask> [channel] [%<XdXhXm>] [reason]
Are you sure about that awyeah?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Those are public commands used via DCC. How can a quit script, itself type .+ban <hostmask> [channel] [%<XdXhXm>] in patyline. Further more it would give the same result as newchanban/newban so I don't suggest here why are we trying to ban it from the partyline, when newchanban can be used? instead of it, am I right?

This is no pub command tcl right, it binds on sign meaning the proc is fired/triggered on an event when someone quits from a channel.

Correction:
You can add bans on partyline manually, but the script can't. Partyline's .+ban <host> <#channel> is 'newchanban' and .+ban <host> is 'newban'.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked