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 

no such channel record

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
BadAssWright
Voice


Joined: 14 Aug 2005
Posts: 8

PostPosted: Sun Aug 28, 2005 12:48 am    Post subject: no such channel record Reply with quote

their is a problem because the channel is caped or something, and i get this error
Code:

      if { [string tolower [lindex $text 2]] == "lacks" } {
      set chanaccess [join [split [string tolower [lindex $text 6 end]] "."]]
          if { [channel get $chanaccess warnedaboutaccess] == 1 } {
            putlog "Asked to raise my access"
            return
          }
          putlog "I lack access in $chanaccess"
          channel set $chanaccess warnedaboutaccess 1
          return
      }

this is where iam having trouble, the rest of the script works, but this one if $text 2 == lacks then it trys to channel set it i get no such channel record
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 28, 2005 1:10 am    Post subject: Reply with quote

obviously chanaccess is being set incorrectly

[join [split $something "."]] will return 2 or more words (if $something contains ".") - not a channel name

you also need to get a clue how to post, by reading the top sticky post of this forum
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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