scripts
scripts copied to clipboard
weestats.py: some things aren't detected correctly
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.
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.
The easiest (and probably best) way is to use the buffer localvar "type".