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.

Default Flags not working

Old posts that have not been replied to for several years.
Locked
m
mcdeck

Default Flags not working

Post by mcdeck »

Hi there,

I've got a problem (you might have guessed). I want my eggdrop to set defaultmodes +hpI on new learned users, but the only flags it sets are +hp, although i've put

default-flags "hpI"

into the config. Though I was told the bot doesn't work with these user defined flags as default-flags, I wrote this little tcl script, but it's not working:

Code: Select all

proc learn_new { nick uhost hand chan } {
 if {[string compare $hand "*"] != 0} { return }
 *msg:hello $nick $uhost $hand hello
 chattr $hand +hpI
}
and yes, i've changed the bind.
So any solutions?

greetz
mcdeck
m
mcdeck

Post by mcdeck »

damn it, fixed it myself

Code: Select all

proc learn_new { nick uhost hand chan } { 
if {[string compare $hand "*"] != 0} { return } 
*msg:hello $nick $uhost $hand hello 
chattr $nick +hpI 
} 
It's working but I'm not sure if its the best way to do. if anyone got another solution, please let me know
Locked