Alias Scripting Error (what happened to the second argument?)

Posted by Deqitosv on Sat 06 Jul 2002 09:58 PM — 2 posts, 12,184 views.

USA #0
I've found in MushClient 3.20, when I add a new alias (anything with a wildcard) and run in into a sript that the second argument going into the script is blank, or not there.

For instance if I add:
Alias: say *
Send:
label: usesay
script: usesay

---- script file ----
sub usesay(alias,full_line,wildcard)
world.note alias
world.note full_line
world.note wildcard(1)
end sub

Constantly, no matter what I do, full_line is blank or empty. Certainly using wildcards and runing scripts on them would be easy, but I'd like the ability to use the full_line as well (as was able in 3.06).

Anyone else having this problem? Is there just a fix that I'm unaware of? Am I just doing something wrong?
Australia Forum Administrator #1
I think this might have been changed a bit recently, but anyway, with 3.23 (and possibly 3.20 as well), the arguments are this:


sub usesay(alias,full_line,wildcard)

' alias = name of alias
' full_line = full line *sent* (in your case, blank)
' wildcard (1) = first wildcard (eg. the asterisk contents)
' wildcard (10) = the entire matching line (eg. 'say blah')

end sub