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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue May 15, 2007 10:17 am
Re-read the first line in my previous post...
NML_375
sdays
Halfop
Posts: 98 Joined: Sat Oct 21, 2006 4:46 am
Post
by sdays » Tue May 15, 2007 11:00 am
ok i got it i did this "if {[ischanset $chan "+regainop"] && ![botisop $chan] && ![matchattr $hand b|b $chan]} {" thanks for all your help.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue May 15, 2007 11:54 am
Or simply "if {![botisop $chan] && [llength [chanlist $chan -b]] <= 1} {..."
Also worth noting, you code only checks wether the one parting the channel was a bot or not, it does not test how many ppl still remain in the channel (bots or nonbots). This could easily be exploited by a malicious floodnet...
Furthermore, it would also be an improvement to check wether we know any opped (person or bot) in the channel before parting, as the current code could even prevent normal botnet-opping in some scenarios.
NML_375
sdays
Halfop
Posts: 98 Joined: Sat Oct 21, 2006 4:46 am
Post
by sdays » Tue May 15, 2007 2:45 pm
Okay, thats better but when i do "bind quit - * cycle:chan" it gives a error :S
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Tue May 15, 2007 4:13 pm
<irony>/me sharpens his psycic powers, but is yet unable to telepathicially read the error out of sdays' mind...</irony>
It would really be helpful if you could post atleast some information on the error you actually get
NML_375
sdays
Halfop
Posts: 98 Joined: Sat Oct 21, 2006 4:46 am
Post
by sdays » Tue May 15, 2007 4:17 pm
ok i got it, it was "bind sign - * cycle:chan" ok i got every thing i need thx for all ya help.