mIRC Homepage
Posted By: Gameaddix Connections at one time - 15/10/04 10:14 AM
is there any way (scriptwise) to monitor all the connections to you own server at one time? i know the command /stats u, but that isnt current connections, its max connections.
Posted By: Relinsquish Re: Connections at one time - 15/10/04 11:26 AM
/who *
Posted By: Gameaddix Re: Connections at one time - 15/10/04 10:58 PM
any way i could get it to show a number?
Posted By: Relinsquish Re: Connections at one time - 15/10/04 11:58 PM
What do you mean "Number"?
Posted By: Gameaddix Re: Connections at one time - 16/10/04 12:10 AM
like, could i get it to say like xx People are currently connected, when i do a /who *
Posted By: alkahol1k Re: Connections at one time - 16/10/04 02:53 AM
why dont you just use /lusers
Posted By: Gameaddix Re: Connections at one time - 16/10/04 03:34 AM
thx...man....now i feel dumb >.<

also: any way i could take the:
Current Local Users: 203 Max: 217
Current Global Users: 215 Max: 229
i get from it, and make it so it messages the current channel i'm on?
Posted By: tidy_trax Re: Connections at one time - 16/10/04 03:51 AM
Type /debug @debug, then type /lusers, then look in the @debug window to see which raws are called, then catch those raws in a raw event (/help raw events) and make it message the channel from there.
Posted By: Gameaddix Re: Connections at one time - 16/10/04 04:17 PM
ok, got that working here's the script i used

raw 265:*Current Local Users*:MSG $active $2-

and to activate it:

menu channel {
.Current Connections : /lusers
}

how would i edit either of those (or make another menu channel) so i can click it and have it /echo the info instead of msg'ing the channel, that way i can see for myself how many users my server has. also, i want to keep it where i can msg the channel OR echo it to myself.
Posted By: tidy_trax Re: Connections at one time - 16/10/04 04:24 PM
Code:
raw 265:*Current Local Users*:{ 
  $$hget(lusers,method) $active $2- 
  haltdef 
}

menu channel {
  Current Connections 
  .Echo:{
    hadd -m lusers method echo 
    lusers
  }
  .Msg:{
    hadd -m lusers method msg 
    lusers
  }
}

Posted By: Gameaddix Re: Connections at one time - 16/10/04 04:27 PM
ok, cool, thx
© mIRC Discussion Forums