weechat / scripts

Official scripts for WeeChat.
https://weechat.org/scripts/
231 stars 222 forks source link

weestats.py: some things aren't detected correctly #26

Open Mikaela opened 10 years ago

Mikaela commented 10 years ago

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.

HelixSpiral commented 10 years ago
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.

stfnm commented 10 years ago

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