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.

auto regain op..

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Re-read the first line in my previous post...
NML_375
s
sdays
Halfop
Posts: 98
Joined: Sat Oct 21, 2006 4:46 am

Post by sdays »

ok i got it i did this "if {[ischanset $chan "+regainop"] && ![botisop $chan] && ![matchattr $hand b|b $chan]} {" thanks for all your help.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
s
sdays
Halfop
Posts: 98
Joined: Sat Oct 21, 2006 4:46 am

Post by sdays »

Okay, thats better but when i do "bind quit - * cycle:chan" it gives a error :S
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

<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
s
sdays
Halfop
Posts: 98
Joined: Sat Oct 21, 2006 4:46 am

Post by sdays »

ok i got it, it was "bind sign - * cycle:chan" ok i got every thing i need thx for all ya help. :P
Post Reply