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.

realname not recognised

Help for those learning Tcl or writing their own scripts.
Post Reply
j
justin92
Voice
Posts: 2
Joined: Tue Nov 18, 2008 6:49 am

realname not recognised

Post by justin92 »

Hi,
I am using this line of code in a script to check for realnames that need kicking. It performs a whois to create $txt. I have set a list that includes elements like "18 m" and "justin92".
I use a foreach loop to query the list against realname.

Code: Select all

set realname [stripcodes bcruag [string range [join [lrange [split $txt] 5 end]] 1 end]]
It works without a problem when the realname is in the form justin92 but when it is in the form justin is 18 m it fails.

Can anybody please explain why.

Thanks
:)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Have you checked that your list of bad realnames is proper?

Inserting some debugging code into the loop posting both the values of realname and the current element you're matching against would probably be helpful.
NML_375
j
justin92
Voice
Posts: 2
Joined: Tue Nov 18, 2008 6:49 am

realname not recognised (solved)

Post by justin92 »

Hi nml375,
Thanks for the tip.
Having used debugging on the loop I found that there was an issue with the timer being used in the script causing more than half of the joins to be ignored.
Thanks
:)
Post Reply