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.

Channel user stats?

Old posts that have not been replied to for several years.
s
syk
Voice
Posts: 22
Joined: Tue Jan 04, 2005 8:18 pm

Post by syk »

I have another question about this

how can I make this where, in the partyline like it is, i type .chanstats #channel #channeltorelayto, and it will privmsg the second refered channel, the stats of the first channel?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Let me get this straight...you understand the code I posted earlier, but you don't know how to extract a couple of arguments from a string? I find that hard to believe.
Have you ever read "The Manual"?
s
syk
Voice
Posts: 22
Joined: Tue Jan 04, 2005 8:18 pm

Post by syk »

I meant I understood what it does, not that I understood everything in the code
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

syk wrote:I meant I understood what it does, not that I understood everything in the code
So what exactly is your question? Extracting the two channel names can be done in many ways...here's one way to do it:

Code: Select all

if {[scan $string %s%s first second]==2} {
	# we've got two arguments; $first and $second
}
Have you ever read "The Manual"?
s
syk
Voice
Posts: 22
Joined: Tue Jan 04, 2005 8:18 pm

Post by syk »

So, if I put that in there, it'll privmsg $second with the stats of the first channel?

(btw I'm not too sure how to incorperate that with the previous code)
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

user wrote:Feel free to ask questions about parts of the code that you don't understand. If you don't understand any of it, your initial post should have been "I need a tcl that does ..... Can someone code it for me?" (or you should be reading manuals)
Have you ever read "The Manual"?
s
syk
Voice
Posts: 22
Joined: Tue Jan 04, 2005 8:18 pm

Post by syk »

syk wrote:I have another question about this

how can I make this where, in the partyline like it is, i type .chanstats #channel #channeltorelayto, and it will privmsg the second refered channel, the stats of the first channel?
Locked