shroudBNC Board

Full Version: The sBNC Cache
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

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

Thanks.
Hi Jimmy,

setbncuser should in fact work as expected. How exactly were you trying to change a user's settings?

Regards,
Gunnar Beutner
I'm sending the command:
tcl :setbncuser <user> option <parameter>

The one i noticed that wasn't being reflected in /sbnc set was the dropmodes / automodes setting:
tcl :setbncuser <user> automodes pT

Thanks again!
Jimmy.
On my 1.2 rev 1080 process, mine is doing the following:

Code:
15:46:29 >> (DarkDeviL) set
...
15:46:29 << (-sBNC) automodes - +iwR-d
15:46:29 << (-sBNC) dropmodes - -w+d
15:47:09 >> (DarkDeviL) tcl setbncuser D4rkD3viL automodes w
15:47:09 << (-sBNC) 1
15:47:14 >> (DarkDeviL) tcl setbncuser D4rkD3viL dropmodes w
15:47:14 << (-sBNC) 1
15:47:15 >> (DarkDeviL) set
...
15:47:15 << (-sBNC) automodes - +omodes
15:47:15 << (-sBNC) dropmodes - -pmodes
15:48:01 >> (DarkDeviL) tcl getbncuser D4rkD3viL automodes
15:48:01 << (-sBNC) w
15:48:04 >> (DarkDeviL) tcl getbncuser D4rkD3viL dropmodes
15:48:04 << (-sBNC) w
15:48:23 >> (DarkDeviL) set automodes +w
15:48:23 << (-sBNC) Done.
15:48:25 >> (DarkDeviL) set dropmodes -w
15:48:25 << (-sBNC) Done.
15:48:27 >> (DarkDeviL) set
...
15:48:27 << (-sBNC) automodes - +w
15:48:27 << (-sBNC) dropmodes - -w
15:50:31 >> (DarkDeviL) tcl setbncuser D4rkD3viL automodes "+iwR-d"
15:50:31 << (-sBNC) 1
15:50:39 >> (DarkDeviL) tcl setbncuser D4rkD3viL dropmodes "-w+d"
15:50:39 << (-sBNC) 1
15:50:41 >> (DarkDeviL) set
...
15:50:41 << (-sBNC) automodes - +w
15:50:41 << (-sBNC) dropmodes - -w
15:52:40 >> (DarkDeviL) tcl getbncuser D4rkD3viL automodes
15:52:40 << (-sBNC) +iwR-d
15:52:43 >> (DarkDeviL) tcl getbncuser D4rkD3viL dropmodes
15:52:43 << (-sBNC) -w+d

So ehh, this seems to confirm the (cache)bug?
A bug report on the bug tracker would be in order here. Smile
I agree, El Rico.

I have posted a report on the tracker, located here.

:-)
Awesome, can't wait for the next stable release!
Reference URL's