This code allows you to check which users are connected on some IP at your network.
Code requires ircop status to be proccessed.
Example:
[15:44] *** (NETWORK) -- Starting scanning for IP: *@12.34.56.78
[15:44] *** (irc.local.net) -- User Some-Nick (id@12.34.56.78) -- Real name: aa
[15:44] *** (irc.local.net) -- User Some-Other-Nick (id2@12.34.56.78) -- Real name: bb
[15:44] *** (NETWORK) -- Scanning for *@12.34.56.78 took 0 seconds with 2 found matches.
NOTE: Let me know about any bug
raw 352:*: {
if (%type == ip) {
echo -s $timestamp *** ( $+ $5 $+ ) -- User $6 ( $+ $3 $+ @ $+ $4 $+ ) -- Real name: $9-
inc %.scan.found 1
}
inc -c %sec.took 1
halt
}
raw 315:*: {
if (%type == ip) {
echo -s $timestamp *** ( $+ $network $+ ) -- Scanning for *@ $+ %.scan.ip took $round($calc(%sec.took / 100),1) seconds with %.scan.found found matches.
}
set %sec.took 0
unset %.scan.ip
set %.scan.found 0
unset %type
halt
}
menu status {
Check Users at IP {
if (o isincs $usermode) {
set %type ip
set %.scan.ip $remove($?"Enter IP for scan:",*@,@)
echo -s $timestamp *** ( $+ $network $+ ) -- Starting scanning for IP: *@ $+ %.scan.ip
who +Ii %.scan.ip
}
elseif (o !isincs $usermode) && ($status == connected) {
echo -s *** Can't scan for IP while you aren't oper at $network ( $+ $server $+ )
}
elseif (o !isincs $usermode) && ($status == disconnected) {
echo -s *** First try to connect to server!
}
}
}
@Flux maybe you should ask that in the mIRC Snippet Requests in the forums
http://www.hawkee.com/phpBB2/viewforum.php?f=9