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.

TCL modifying

Old posts that have not been replied to for several years.
Locked
g
gatus

TCL modifying

Post by gatus »

hello :)

i have trouble modifying a channel-join notice script. the thing is, i want to exclude some people/hosts from the notice script. is that possible?
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

It is very possible. Just add in a few lines that will first nick2hand and then check if the user has a flag, such as +Z. If the user does have it, then have the script just return. Then you can just .chattr some people +Z to have the script not bother them.
g
gatus

Post by gatus »

thanks,

by the way, do you have a link to a good TCL manual, 'cause i have almost no idea of TCL.

thanks again.
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I see no need for the 'nick2hand' thing. Why don't you use the 'handle' that the proc gives you? Also, you may find interesting things in the tcl-commands.doc file and you can see http://tcl.activestate.com/man/tcl8.2.3 ... ntents.htm also.
Once the game is over, the king and the pawn go back in the same box.
g
gatus

Post by gatus »

thanks guys

i really appresiate your help :)
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

heh, now that I look back at that post I wonder the same myself. :oops: http://tcl.tk/ is a great place for tcl man pages also by the way.
g
gatus

Post by gatus »

blah. too complicated for me :)


is there a way just to block particular users so the bot doesnt send *anything* to them, no text, no notice no nothing?

thanks in advance
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Make an Nothing user and add the particular users hostmasks to this user. Then make an particular flag, then use the particular flag to ignore what you want.
Once the game is over, the king and the pawn go back in the same box.
g
gatus

Post by gatus »

caesar wrote: Make an Nothing user and add the particular users hostmasks to this user. Then make an particular flag, then use the particular flag to ignore what you want.
i follow you until "Then make an particular flag". ok, suppose the user is 'userX' with hosts *!*first@ignored.user* and *!*second@ignored.user*. i give them a flag which doestn exist in any eggdrop function. lets say, flag X. so, .chattr userX +X

very good, now how do i make the bot ignore the users from that flag?

thanks in advance,
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

if {[matchattr $user X]} { return 0 }
Elen sila lúmenn' omentielvo
g
gatus

Post by gatus »

doesn't work

[14:44] can't read "user": no such variable
while executing
"matchattr $user X"
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Use it exactly how Papillon said: if {[matchattr $user X]} { return 0 } and instead $user change with $hand,$handle or whatever you have in your proc.
Once the game is over, the king and the pawn go back in the same box.
Locked