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.

protection flags

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

protection flags

Post by ReaLz »

is it possible to set some flags which will be protected from the actions of a tcl script (like ban or kick...)?
could somebody tell me the commands to set some "protected flags"?
«A fantastic spaghetti is a spaghetti that does not exist»
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

eggdrop does not offer this kind of protection by default.
your scripts have to be made to check flags and act on that.
photon?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

try something like..

Post by De Kus »

Code: Select all

global botnick
if { ($nick == $botnick) || [matchattr $hand "f|f" $chan] || [matchattr $hand "o|o" $chan] } {return 0}
you usually dont need botnick, cause in cases of channel message the bot wont hear himself, but it will see its own kicks, mode changes etc..
note: return 0 will "drop" this event so it wont cause another bind call, nut dont be shy using return with other return values ^-^ (yell me if i am wrong :D)
Locked