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 

put lindex1 and lindex2 together?

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


Joined: 18 Nov 2006
Posts: 16

PostPosted: Sun Dec 31, 2006 9:59 pm    Post subject: put lindex1 and lindex2 together? Reply with quote

Happy New Year!!

For announcing some output of the sitebot to a second channel I use:
(example if a NEW release is send)

Code:

    set one [lindex $nam 0]
 if {[string equal NEW $one]} {
  putserv "PRIVMSG #channel1 :$announce"} else {
  putserv "PRIVMSG #channel2 :$announce"}


The problem is it wil announce, in channel1: New upload, New sample, New cover etc.
But I only want the "new upload" to be announce in channel1.

So I need to use the first and second lindex of $nam:
set one [lindex $nam 0]
set two [lindex $nam 1]

But then I dont know how to use it, so it wil announce lindex equal NEW ($one) UPLOAD ($two) to channel1.
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