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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  New line being sent to mud via aliases

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: New line being sent to mud via aliases
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Sleeve   (31 posts)  [Biography] bio
Date Sun 06 Apr 2003 08:46 AM (UTC)  quote  ]
Message
Thanks for the workaround and the information about 3.36 Nick. :) It's not really a big deal, it's just that I have a lot of aliases that send nothing to the mud and noticed it happening again.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 06 Apr 2003 08:34 AM (UTC)  quote  ]
Message
Yes, I see what you mean. I did say "fixed" didn't I? What I meant was, "almost fixed". ;)

I thought I had it nice and simple, but it seems it is too simple, and this case slips through and sends a blank line.

For a start, you can work around it. Set the alias to "send to speedwalk". An empty speedwalk sends nothing, not even one line. I just tested that.

In version 3.36 I have tightened the code up a bit. Now the "send to" code does absolutely nothing if the "send" text is empty. That fixes it. You can still send a blank line to the MUD if you actually type it in (or have an alias with a non-empty send box).

- Nick Gammon

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

Posted by Sleeve   (31 posts)  [Biography] bio
Date Sun 06 Apr 2003 08:10 AM (UTC)  quote  ]
Message
I just tried this out in 3.35 and still have the same problem. Just to make sure that my plugin isn't doing anything really wierd, I tried this out with the MudDatabase plugin as well. For example, using the MudDatabase plugin, if I type "addmud test test 4000 description" it will send a newline to the mud after processing the addmud alias.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 03 Apr 2003 02:29 AM (UTC)  quote  ]
Message
Fixed in 3.35.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 25 Mar 2003 05:46 AM (UTC)  quote  ]
Message
Ach! It seems like the code to set a variable from an alias has had an undesired side-effect. Sorry. Will look at it.

- Nick Gammon

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

Posted by Magnum   Canada  (580 posts)  [Biography] bio
Date Mon 24 Mar 2003 02:54 PM (UTC)  quote  ]
Message
I am also experiencing this bug. To be clear, it's not simply a blank line that is created, but rather a "return" character is sent to the mud.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Mon 24 Mar 2003 11:43 AM (UTC)  quote  ]
Message
I have the same problem with 3.34 actually. Didn't realize what it was exactly but now I think that script calls from aliases are indeed the source of the problem. I've tried a few aliases that don't call any script procedures and those work as usual, but aliases which do rely on a script (such as targetting for example) do their job and then send the newline. And it doesn't depend on whether the script sends anything to the world or not, the newline is sent in either case.
[Go to top] top

Posted by Sleeve   (31 posts)  [Biography] bio
Date Mon 24 Mar 2003 07:17 AM (UTC)  quote  ]

Amended on Mon 24 Mar 2003 07:18 AM (UTC) by Sleeve

Message
I have a few aliases that set some mushclient variables that I use in my scripts and in version 3.32, the alias would call a routine and simply set the variable without sending anything to the mud. I just upgraded to version 3.34 and when I used the same alias, it still called the routine and performed as expected, but then a newline was also sent to the mud... even though that particular routine sends nothing. Is there a way I can disable this newline being sent when I don't want it to be? Thanks.
[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,874 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]