| View previous topic :: View next topic |
| Author |
Message |
justin92 Voice
Joined: 18 Nov 2008 Posts: 2
|
Posted: Tue Nov 18, 2008 7:04 am Post subject: realname not recognised |
|
|
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: |
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
 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Nov 18, 2008 2:58 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
justin92 Voice
Joined: 18 Nov 2008 Posts: 2
|
Posted: Thu Nov 20, 2008 3:49 pm Post subject: realname not recognised (solved) |
|
|
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
 |
|
| Back to top |
|
 |
|