| View previous topic :: View next topic |
| Author |
Message |
BadAssWright Voice
Joined: 14 Aug 2005 Posts: 8
|
Posted: Sun Aug 28, 2005 12:48 am Post subject: no such channel record |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Aug 28, 2005 1:10 am Post subject: |
|
|
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 |
|
 |
|