Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Execute("alias") does not trigger alias in Plugin mode..

Execute("alias") does not trigger alias in Plugin mode..

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


Posted by Glorimus   (7 posts)  Bio
Date Fri 14 Oct 2016 03:07 PM (UTC)
Message

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
    <plugin
    name="test"
    author="glorimus"
    id="874a4e51bae1c913dc396090"
    language="Lua"
    purpose="test"
    requires="4.52"
    version="2.4"
    save_state="y"
    >
<description trim="y">
USAGE:
    Test
      
</description>
  
</plugin>
<aliases>
 <alias
   match="^test$"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>
Note("HI")</send>
</alias>
<alias
   match="^test2$"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>Execute("test;")</send>
</alias>
</aliases>
<script>
<![CDATA[
]]>
</script>
</muclient>



When i type test2, I see "test;" as input but it doesn't trigger

however when i change this to Execute("test"), it does.

Somehow the ";" is being interpreted in the alias? is there a way to have mushclient treat ";" as a separator?
Top

Posted by Glorimus   (7 posts)  Bio
Date Reply #1 on Fri 14 Oct 2016 06:17 PM (UTC)
Message
nvmd figured this out.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 14 Oct 2016 10:09 PM (UTC)
Message
What was the problem?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Glorimus   (7 posts)  Bio
Date Reply #3 on Sun 16 Oct 2016 08:49 AM (UTC)
Message
I didn't enable command_stack and set the command_stack_parameter correctly.
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.


12,519 views.

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

Go to topic:           Search the forum


[Go to top] top

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