This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

no such channel record

Old posts that have not been replied to for several years.
Locked
B
BadAssWright
Voice
Posts: 8
Joined: Sun Aug 14, 2005 6:20 pm

no such channel record

Post by BadAssWright »

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

Code: Select all

      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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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
Locked