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.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Problems with OnPluginConnect
Problems with OnPluginConnect
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #15 on Tue 21 Apr 2009 08:48 PM (UTC) |
Message
| And what are your debugging displays showing? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #16 on Wed 22 Apr 2009 12:02 AM (UTC) |
Message
| I discovered the problem, by adding one more Note() in a key location. :P I'm setting 'v.version' to nil in EnableModule, but apparently 'v' really references 'mods[m]', and is not actually a copy, so by unsetting v.version I'm actually killing it the next time I try to set that module, whether during the same connection or during a later one. >_<
Thanks for the help, heh. It wasn't a very obvious problem I guess. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #17 on Wed 22 Apr 2009 12:08 AM (UTC) |
Message
| Yes, a bit tricky. :)
v = mods[m]
if v then
nexus_opts[m] = v.version
v is a table, and tables are passed by reference, not by value. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #18 on Wed 22 Apr 2009 12:26 AM (UTC) |
Message
| Right. I fixed it by changing it to "if v.version then", also replacing the set-to-nil with an "if i ~= "version" in the inner loop. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | 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.
49,354 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top