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.

+a protect chan mode

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

+a protect chan mode

Post by gwb38 »

i am trying to make a script that when i add a chattr nick +y on egg. when the person joins the channel it make a channel flag +a for that user/op/halfop

here is code i have so far seems not to work

setudef flag aprotect

bind join y * a:protect

proc a:protect {nick uhost handle channel} {
global botnick
if {[lsearch -exact [channel info $channel] -freevoice] != -1 || ![botisop $channel]} { return }
pushmode $channel +a $nick
}
g
gwb38

Post by gwb38 »

is the code i got so far


setudef flag aprotect

bind join y * a:protect

proc a:protect {nick uhost handle channel} {
global botnick
if {[lsearch -exact [channel info $channel] -aprotect] != -1 || ![botisop $channel]} { return }
pushmode $channel +a $nick
}
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

From what I understand, it may well be eggdrop stirpping the +a channel mode awya, because it doe not know what it means.

Try using the likes of puthelp or putserv commands.
Locked