egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

realname not recognised

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
justin92
Voice


Joined: 18 Nov 2008
Posts: 2

PostPosted: Tue Nov 18, 2008 7:04 am    Post subject: realname not recognised Reply with quote

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
Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 18, 2008 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
justin92
Voice


Joined: 18 Nov 2008
Posts: 2

PostPosted: Thu Nov 20, 2008 3:49 pm    Post subject: realname not recognised (solved) Reply with quote

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
Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber