Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
The sBNC Cache
|
| Author |
Message |
Jimmy
Junior Member
 
Posts: 3
Joined: Jul 2010
Reputation: 0
|
The sBNC Cache
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  .
Thanks.
(This post was last modified: 03.07.2010 14:11 by Jimmy.)
|
|
| 03.07.2010 14:09 |
|
DarkDeviL
Junior Member
 
Posts: 5
Joined: Jul 2010
Reputation: 0
|
RE: The sBNC Cache
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?
DarkDeviL is authed as DarkDeviL.
|
|
| 11.08.2010 14:54 |
|
DarkDeviL
Junior Member
 
Posts: 5
Joined: Jul 2010
Reputation: 0
|
RE: The sBNC Cache
I agree, El Rico.
I have posted a report on the tracker, located here.
:-)
DarkDeviL is authed as DarkDeviL.
|
|
| 11.08.2010 16:42 |
|