egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

auto regain op..
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue May 15, 2007 10:17 am    Post subject: Reply with quote

Re-read the first line in my previous post...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Tue May 15, 2007 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue May 15, 2007 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Tue May 15, 2007 2:45 pm    Post subject: Reply with quote

Okay, thats better but when i do "bind quit - * cycle:chan" it gives a error :S
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue May 15, 2007 4:13 pm    Post subject: Reply with quote

<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
View user's profile Send private message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Tue May 15, 2007 4:17 pm    Post subject: Reply with quote

ok i got it, it was "bind sign - * cycle:chan" ok i got every thing i need thx for all ya help. Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber