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 

Bot should reop - Help with this script
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Mar 22, 2006 1:53 pm    Post subject: Reply with quote

I have edited the code, try it now.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu Mar 23, 2006 10:58 am    Post subject: Reply with quote

You are a god Sir_Fz. But you forgot a bracket.
Quote:
set cmd [string trimleft [join [lrange [split $nho] 1 end-1]] \"]

I added it. Now it works perfectly.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Mar 23, 2006 1:21 pm    Post subject: Reply with quote

Glad it worked. Also, something like this should work:
Code:
# check every how many seconds?
set nhotime 30

if {[timerexists needhop]==""} {
 utimer $nhotime needhop
}

setudef str need-halfop

proc needhop {} {
 global botnick
 foreach chan [channels] {
  if {![botishalfop $chan] && [set nho [channel get $chan need-halfop]] != ""} {
   eval $nho
  }
 }
 utimer $::nhotime needhop
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu Mar 23, 2006 1:38 pm    Post subject: Reply with quote

Yes you are right.
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 -> Scripting Help 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