Snippets Project Page
Author: entropy
Added: 4y
Updated: 4y
mIRC: 7.52+
Hits: 954
Downloads: 15
Review: maroon
Size: 186B
1 0
Login to vote.
$chans and $queries
v1.0
$chans - returns all channels on all networks.
$queries - returns all queries on all networks.
Download
JSON
▲ Review
▼ Source
; Syntax: $chans and $queries alias chans { var %c = 0 | scon -at1 inc % $+ c $!chan(0) | return %c } alias queries { var %q = 0 | scon -at1 inc % $+ q $!query(0) | return %q }
Changelog:
0
0
Review: maroon
Simple script that works at least as far back as v6.35, and can be modified to count other things that mIRC reports only by individual server. For example you can change $!chan(0) to $!ial(*,0) to count your total IAL across all servers.
This counts only at networks where you're connected, and counts open query and channel windows even if the other nick isn't there, and even if you are not in the channel nicklist.
You can move these aliases into any of your existing *.MRC scripts to avoid adding another to your scripts list. If you move it to your alt+D aliases file, be sure to remove the "alias" keyword too.
You might want to rename them to something like totalchans or allchans or chancount
Simple script that works at least as far back as v6.35, and can be modified to count other things that mIRC reports only by individual server. For example you can change $!chan(0) to $!ial(*,0) to count your total IAL across all servers.
This counts only at networks where you're connected, and counts open query and channel windows even if the other nick isn't there, and even if you are not in the channel nicklist.
You can move these aliases into any of your existing *.MRC scripts to avoid adding another to your scripts list. If you move it to your alt+D aliases file, be sure to remove the "alias" keyword too.
You might want to rename them to something like totalchans or allchans or chancount