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 ➜ New line being sent to mud via aliases

New line being sent to mud via aliases

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


Posted by Sleeve   (31 posts)  Bio
Date Mon 24 Mar 2003 07:17 AM (UTC)

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.
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #1 on Mon 24 Mar 2003 11:43 AM (UTC)
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.
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #2 on Mon 24 Mar 2003 02:54 PM (UTC)
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.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 25 Mar 2003 05:46 AM (UTC)
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
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 03 Apr 2003 02:29 AM (UTC)
Message
Fixed in 3.35.

- Nick Gammon

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

Posted by Sleeve   (31 posts)  Bio
Date Reply #5 on Sun 06 Apr 2003 08:10 AM (UTC)
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.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #6 on Sun 06 Apr 2003 08:34 AM (UTC)
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
Top

Posted by Sleeve   (31 posts)  Bio
Date Reply #7 on Sun 06 Apr 2003 08:46 AM (UTC)
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.
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.


22,435 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.