
1) Adding Users - Limit on how long name can be.
2) Host Mask - For bans.
3) The flag +a - Auto-Opping.
1 - My first question is, how do i get the eggdrop to accept a longer "HANDLE"
i have a tcl script that binds
~addowner to adding the +n flag in the given channel. I don't feel like posting code, but i can sum it up.
***************EDIT - after reading some other tcl helps, i'm going to paste all of the code.

Code: Select all
bind pub n ~addowner add_owner_chan
proc add_owner_chan {n u h c a} {
global botnick
if {[lindex $a 0] == ""} {
putquick "NOTICE $n : ~addowner <nick>"
return 0
}
set newop [lindex $a 0]
set newhost [maskhost [getchanhost $newop $c]]
if {[finduser $newhost] != "*"} {
putserv "NOTICE $n :$newop\[$newhost\] is known as user [finduser $newhost]"
return 1
}
adduser $newop $newhost
chattr $newop +n $c
putserv "NOTICE $n :$newop\[$newhost\] has been added in $c as owner"
putserv "NOTICE $newop :$n has added you in $c as owner"
save
}
Now, this code WORKS. I have TESTED It, it works fine. But the issue i am having is, if then nick of the person is "iloveggysWOO" Well, the eggdrop will add "iloveegg" to the "handle" part, and when i do "chattr $newop" it is "chattr $iloveeggyswOO" instead of "iloveegg".
Any way i can get the eggy to accept larger "handles" in its user database? Thanks.

2 - The hostmask that "comes with the bot" is *!ident@host.com - I am on a network that allows +x - So obviously, this hostmask is easily ban evadable. I need a hostmask that is *!*@host.com - How can i do this? - It will be easier and more secure when i add users to the bot using the pub command

3 - The +a flag doesn't work for some reason, i had to bind a join event
And YES , i had +autoop set in the channel

Code: Select all
bind join a|a * op_chan
proc op_chan {nick uhost hand chan} {
if {[matchattr $hand -]} {putserv "MODE $chan +o $nick"}
return 1
}