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.

"mirc"function

Old posts that have not been replied to for several years.
Locked
g
gk^
Halfop
Posts: 70
Joined: Sun Jul 28, 2002 6:23 am
Location: Stockholm, Sweden
Contact:

"mirc"function

Post by gk^ »

How can I use the (mirc)funtion $2 (word two in the line that triggered the proc)...

.triggger word1 word2 word33


so that $1 = .trigger | $2 = word1 | $3 = word3 | $4 = word33
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Tcl has no method of doing it that way.

This is simply due to the fact, Tcl is not mIRC.

mIRC uses it's own built in language, and as such, they can build and do what they wish.

In eggdrop, Tcl is used as the scripting langauge.

Tcl is provided seperate to eggdrop, and is not developed byt he eggdrop team.

Due to this fact, eggdrop has to use the interface provided by this language, to pass information between scripts.

Thus, any information passed to a script, must be manipulated by Tcl to get the desired information.

It is not possible to use the mIRC style $1, $2, $N identifiers in Tcl. If you look at other scripts, youw ill see hwo they get the information they need from the text input.

However, this does not mean it's 100% impossible. It's more 100% pathetic/risky, due tot he fact, it's not reliable, and means more work on the programmers part in the long run.
g
gk^
Halfop
Posts: 70
Joined: Sun Jul 28, 2002 6:23 am
Location: Stockholm, Sweden
Contact:

Post by gk^ »

Do you have another way to solov my problem then? That isnt pathetic....
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As posted by "PPSlim"
It is not possible to use the mIRC style $1, $2, $N identifiers in Tcl. If you look at other scripts, youw ill see hwo they get the information they need from the text input.
We try help, not break our backs.
g
gk^
Halfop
Posts: 70
Joined: Sun Jul 28, 2002 6:23 am
Location: Stockholm, Sweden
Contact:

Post by gk^ »

yeah.. about 2 s after I read your reply I found some code... Thanx...

ppslim++ | karma for ppslim++
M
Martin

Post by Martin »

[lindex $var 0] ? to get the first word $var :)
Locked