[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  plugin extra parameters on a "script"
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

plugin extra parameters on a "script"

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Hadar   (3 posts)  [Biography] bio
Date Sat 01 Oct 2016 03:17 AM (UTC)
Message
<alias
match="^q last( .*)?"
enabled="y"
send_to="12"
sequence="100"
regexp="y"
script="Report"
>
</alias>


above is the alias i am using in my plugin
in the script="Report" section I was wondering if there was a way to send extra parameters on the script before my plugin actually parses it?

I want to do Report("q") before i send any other data

hopefully i explained this well enough

Ps hopefully i posted in the correct spot, first time posting
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 02 Oct 2016 03:19 AM (UTC)
Message
The script gets the matching line so it could easily see if the first letter is "q" or not.

An alternative is to remove "Report" from the Script box in the alias, and instead make the alias "send to script". Then in the Send box put:


Report ("q")

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,614 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]