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.

blacklist script

Old posts that have not been replied to for several years.
Locked
i
inferno
Voice
Posts: 17
Joined: Thu Jun 05, 2003 2:46 pm

blacklist script

Post by inferno »

hey there,
i need some 1 plz to write me a script tthat will auto add the user on the eggy shitlist when it bans him
like .chattr $nick +k
and if possible let the reason be : Shitlisted Flooder host
so when the eggy ban a user it will auto add him on shitlist for ever
with this reason.
thanks :)
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

To get you started here are some good tutorials:
SUNiNET TCL Guide
TCL Man Pages

Guess what i editted
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

use newchanban and set its ban-time to 0, which means permamnent shitlist (unless you want it to be cleared after an interval of minutes)

read tcl-commands.doc in your eggdrops doc/ dir so you'd find more info about the newchanban command and the newban command
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Use a bind join for the +k users then use the newchanban to place the channel bans as you wish.
Once the game is over, the king and the pawn go back in the same box.
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Hmmm... Could i specify a reason for the ban if i set +k to a particular user?
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Set +k as a new blacklist user mode (if +k is not already a defined flag in the bot). If it is not defined then define it in a tcl. And when users join (bind join and bind splt), check their handle if their global/channel flags match +k use 'newchanban' as mentioned above with time '0' to ban them, else return 0. You can specify the kick/ban reason in newchanban to be whatever you want it to be. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

awyeah wrote:Set +k as a new blacklist user mode (if +k is not already a defined flag in the bot). If it is not defined then define it in a tcl. And when users join (bind join and bind splt), check their handle if their global/channel flags match +k use 'newchanban' as mentioned above with time '0' to ban them, else return 0. You can specify the kick/ban reason in newchanban to be whatever you want it to be. :mrgreen:
How do I set a newchanban if I've chattr the particular a +k?
As I don't really get it... It's something that can solved in DCC chat or TCL?
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

You could try something like this?

Code: Select all

bind pub m !blacklist pub:black

proc pub:black {nick host hand chan text} {
set victim [lindex $text 0]
if {$victim == ""} {
putquick "NOTICE $nick :Please choose a target first."; return
}
if {![validuser blackl]} {
adduser blackl
chattr blackl +dk
}
addhost blackl [maskhost [getchanhost $victim]]
putquick "NOTICE $nick :Done. $victim was added to the blacklist - His host was [maskhost [getchanhost $victim]]"
newban [maskhost [getchanhost $victim]] Bot Blacklist 0
}
Its untested as i just wrote it in this window :p
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can define any user flag which is not already in use by the bot and other scripts, it doesn't always have to be +k.

What I think caesar wanted to say was:

Code: Select all

if {([matchattr $hand k|k $chan])} { newchanban ............................. }
If user matches that flag, go ahead and ban that user. The script would be binded on join, also can be binded on splt.
·­awyeah·

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