Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The sBNC Cache
Author Message
Jimmy Offline
Junior Member
**

Posts: 3
Joined: Jul 2010
Reputation: 0
Post: #1
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 Wink.

Thanks.
(This post was last modified: 03.07.2010 14:11 by Jimmy.)
03.07.2010 14:09
Find all posts by this user Quote this message in a reply
shroud Offline
Super Moderator
******

Posts: 28
Joined: May 2010
Reputation: 0
Post: #2
RE: The sBNC Cache
Hi Jimmy,

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

Regards,
Gunnar Beutner
31.07.2010 14:16
Visit this user's website Find all posts by this user Quote this message in a reply
Jimmy Offline
Junior Member
**

Posts: 3
Joined: Jul 2010
Reputation: 0
Post: #3
RE: The sBNC Cache
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.
11.08.2010 14:41
Find all posts by this user Quote this message in a reply
DarkDeviL Offline
Junior Member
**

Posts: 5
Joined: Jul 2010
Reputation: 0
Post: #4
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
Find all posts by this user Quote this message in a reply
El Rico Offline
Super Moderator
******

Posts: 24
Joined: Jun 2010
Reputation: 0
Post: #5
RE: The sBNC Cache
A bug report on the bug tracker would be in order here. Smile

[Image: sig_portal.jpg]
11.08.2010 15:11
Find all posts by this user Quote this message in a reply
DarkDeviL Offline
Junior Member
**

Posts: 5
Joined: Jul 2010
Reputation: 0
Post: #6
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
Find all posts by this user Quote this message in a reply
Jimmy Offline
Junior Member
**

Posts: 3
Joined: Jul 2010
Reputation: 0
Post: #7
RE: The sBNC Cache
Awesome, can't wait for the next stable release!
14.08.2010 12:17
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Certain away messages break the sbnc install Wader 0 2,306 16.05.2011 21:07
Last Post: Wader
  [sBNC 1.3] Modes/Ranks arn't being put through sBNC Wader 0 451 21.04.2011 15:01
Last Post: Wader
  Bug report /sbnc tcl TsT 4 2,687 20.06.2010 15:27
Last Post: TsT

Forum Jump:


Contact Us | shroudBNC Home | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication