| View previous topic :: View next topic |
| Author |
Message |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue May 15, 2007 10:17 am Post subject: |
|
|
Re-read the first line in my previous post... _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
sdays Halfop
Joined: 21 Oct 2006 Posts: 98
|
Posted: Tue May 15, 2007 11:00 am Post subject: |
|
|
| ok i got it i did this "if {[ischanset $chan "+regainop"] && ![botisop $chan] && ![matchattr $hand b|b $chan]} {" thanks for all your help. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue May 15, 2007 11:54 am Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
sdays Halfop
Joined: 21 Oct 2006 Posts: 98
|
Posted: Tue May 15, 2007 2:45 pm Post subject: |
|
|
| Okay, thats better but when i do "bind quit - * cycle:chan" it gives a error :S |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue May 15, 2007 4:13 pm Post subject: |
|
|
<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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
sdays Halfop
Joined: 21 Oct 2006 Posts: 98
|
Posted: Tue May 15, 2007 4:17 pm Post subject: |
|
|
ok i got it, it was "bind sign - * cycle:chan" ok i got every thing i need thx for all ya help.  |
|
| Back to top |
|
 |
|