Plugin nonce (plugin info 22) not set

Posted by Twisol on Fri 19 Feb 2010 08:24 PM — 4 posts, 10,962 views.

USA #0
(v5.50 self-built)

GetPluginInfo("id", 22) always returns 0. Looking at the source, I think you forgot to set it when a plugin is installed, because I can't find any references beyond its definition and where it's accessed in GetPluginInfo.

(Working on locating a good place to put an assignment, and how exactly to do it, but I thought I'd post about it.)
USA #1
Pushed my patch to my repository for you to review.
Australia Forum Administrator #2
I put it in the constructor, to be consistent with miniwindow creation, and in case you ever do a "new CPlugin" somewhere else.

Change pushed to Github now.
USA #3
Ah, makes sense. I just put it wherever I noticed other info items being set too.