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 

rehash script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 33

PostPosted: Tue Sep 01, 2020 2:40 am    Post subject: rehash script Reply with quote

Code:

proc pub:rehash {nick host hand chan arg} {
  global botnick
  if {[channel get $chan cmd]} {
  if {[matchattr $hand n] == 0} {
     putserv "NOTICE $nick :You don't have access."
     return 0
  }
  putserv "NOTICE $nick :Rehash."
  rehash
  channel set $chan -cmd
  timer 1 channel set $chan +cmd
 }
}


I have this error: [08:39:03] Tcl error [pub:rehash]: wrong # args: should be "timer minutes command ?count?"

How can i fix this ?
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Tue Sep 01, 2020 3:38 am    Post subject: Reply with quote

Code:
timer 1 [list channel set $chan +cmd]

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
l.kleijn
Voice


Joined: 18 May 2014
Posts: 33

PostPosted: Tue Sep 01, 2020 5:32 am    Post subject: Reply with quote

Thanks it's working
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
Page 1 of 1

 
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