scripts icon indicating copy to clipboard operation
scripts copied to clipboard

weestats.py: some things aren't detected correctly

Open Mikaela opened this issue 11 years ago • 2 comments

After I do /allpv close there are still 7 irc queries open.

2014-06-12 18:40:39+0300 <+Mikaela> 1 windows used (0 vertically / 0 horizontally split). 120 (of which 0 merged) buffers open: 1 core, 1 perl, 1 script, 101 irc channels, 7 irc queries, 9 irc servers

I think that weestats is detecting channels which don't start with # as I am using BitlBee with channels &bitlbee,&0,&1,&2,&3,&4 and I have one private channel starting with ! at IRCnet.

Mikaela avatar Jun 12 '14 15:06 Mikaela

elif '#' in bname:
        btype = '%s channels' % btype

It looks like you're right, anything other than that and servers are defaulting to 'queries'. My python isn't good enough to make it grab channel prefixes from the 005 numeric though.

HelixSpiral avatar Jun 13 '14 17:06 HelixSpiral

The easiest (and probably best) way is to use the buffer localvar "type".

stfnm avatar Jun 15 '14 21:06 stfnm