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 ➜ Bug reports ➜ Triggers enabled by default

Triggers enabled by default

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


Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Thu 07 Nov 2002 11:31 AM (UTC)
Message
I made a plugin, that requires some triggers to be disabled on startup, so i disabled them. When MUSHClient opened though, they were enabled (My code didn't enable them, I checked). I looked at the plugin, and the enabled=y line is not there. I tried explicitly disabling them, i.e. enabled=n, and it worked fine. I'm going to venture a guess here, i think that you have coded MUSHClient to set variables to enabled by default if it doesn't find the "enabled" line... Am I right?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 09 Nov 2002 03:38 AM (UTC)
Message
There was a slightly insidious bug there. When the plugin was loaded as part of the world loading, it assumed defaults for things, so triggers defaulted to enabled, however if you reinstalled the plugin, it assumed "no defaults", so your trigger would have been disabled the second time.

This is a bug, you are supposed to explicitly enable triggers (etc.) in plugins.

It will be fixed in 3.32.

That is, the default (if not supplied) for every entry will be zero or blank (if a string).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


7,083 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.