03.07.2010, 14:09
Well i was taking a look through the source and noticed that when a user updates their settings, through /sbnc set <option> <parameter> it appears to be loaded into a cache, which can also be read from.
Now i was playing around with changing settings via TCL and noticed that some of them weren't being updated, however the changes would become apparent after a restart of sBNC. I believe that this is because when a user updates their settings via a TCL command, a file is updated but the sBNC cache itself is not updated. So on a call of /sbnc set when the above code is used, it's not returning what it should.
I'm pretty sure it's not working until a restart either. Hopefully TCL commands can be implemented into the cache
.
Thanks.
Quote:AutoModes = CacheGetString(m_ConfigCache, automodes);
Now i was playing around with changing settings via TCL and noticed that some of them weren't being updated, however the changes would become apparent after a restart of sBNC. I believe that this is because when a user updates their settings via a TCL command, a file is updated but the sBNC cache itself is not updated. So on a call of /sbnc set when the above code is used, it's not returning what it should.
I'm pretty sure it's not working until a restart either. Hopefully TCL commands can be implemented into the cache
.Thanks.
