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-limit-change tcl errors....

Old posts that have not been replied to for several years.
Locked
}
}eXtreme{
Voice
Posts: 30
Joined: Mon Mar 03, 2003 5:33 pm
Location: Dark side of the Moon =)
Contact:

no-limit-change tcl errors....

Post by }eXtreme{ »

I use nouselimit.tcl which ban anyone without proper flags who change channel limit, but that script have bug. It ban irc server when it come from split and change limit. Usless annoying ban...

I replace line:
if {!(([matchattr $hand +o]) && ([matchattr $hand +b] || [matchattr $hand +n] || [matchattr $hand +m]))} {

with:
if {!(([matchattr $hand +o]) && ((string first . $nick) != -1) && ([matchattr $hand +b] || [matchattr $hand +n] || [matchattr $hand +m]))} {



But now it state me error in partyline:
Tcl error [guruz_limit_mode]: syntax error in expression "!(([matchattr $hand +o]) && ((string first . $nick) != -1) &...": variable references require preceding $

Any suggestion?
Yeah.. I know... my english suxxx... and so what ??? =)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I don't use anything like nouselimit.tcl on DALnet but as a just in case I added services as a user with the global +f flag:

<Alcheri> .whois dalnet
<Ballarat> [09:59] #Alchera# whois dalnet
<Ballarat> HANDLE PASS NOTES FLAGS LAST
<Ballarat> DALnet no 0 f 01 May (#Ballarat)
<Ballarat> HOSTS: *!*@dal.net

In my conf I have nodesynch enabled also. In your script you could just then easily add [matchattr $hand +f] instead of ((string first . $nick) != -1).

No more problems, no more errors. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

When obtaining a result from a Tcl command/procedure in use for evaluation, you need to use []'s, not ()'s...

ie.
if {[string match "*.*" $nick]} { ... it's a server ... }
Locked