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.

+R Script

Old posts that have not been replied to for several years.
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

Post by mcdarby »

user wrote:
mcdarby wrote: [21:09] Tcl error [mode-R]: unknown channel command: should be one of: add, set, info, remove
That's because you're running an old version of eggdrop.

replace

Code: Select all

[channel get $c R]
with

Code: Select all

[lsearch [channel info $c] +R]>-1
Tried that, comes back as this.

[22:02] Tcl error [mode-R]: syntax error in expression "[lsearch [channel info $c] -R]>-1]&&[string match *R* [linde"
[22:03] Tcl error [mode+R]: syntax error in expression "[lsearch [channel info $c] +R]>-1]&&![string match *R* [lind"
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Do what i said and it'll work.
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

Post by mcdarby »

user wrote:Do what i said and it'll work.
I did exactly what you said and just showed you the message that I got when I tried what you said.

--
McDarby
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

mcdarby wrote:[lsearch [channel info $c] -R]>-1]
Did i tell you to add a ] after the replacement?
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

Post by mcdarby »

user wrote:
mcdarby wrote:[lsearch [channel info $c] -R]>-1]
Did i tell you to add a ] after the replacement?
Sorry about that, I'm just new to TCL Scripting and added the ] by mistake. I removed that and it works right now, thanks.

--
McDarby
Locked