mIRC Home    About    Download    Register    News    Help

Print Thread
Connections at one time #100691 15/10/04 10:14 AM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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.

Re: Connections at one time #100692 15/10/04 11:26 AM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
/who *


- Relinsquish
Re: Connections at one time #100693 15/10/04 10:58 PM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
any way i could get it to show a number?

Re: Connections at one time #100694 15/10/04 11:58 PM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
What do you mean "Number"?


- Relinsquish
Re: Connections at one time #100695 16/10/04 12:10 AM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
like, could i get it to say like xx People are currently connected, when i do a /who *

Re: Connections at one time #100696 16/10/04 02:53 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
why dont you just use /lusers

Re: Connections at one time #100697 16/10/04 03:34 AM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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?

Last edited by Gameaddix; 16/10/04 03:40 AM.
Re: Connections at one time #100698 16/10/04 03:51 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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.


New username: hixxy
Re: Connections at one time #100699 16/10/04 04:17 PM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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.

Last edited by Gameaddix; 16/10/04 04:18 PM.
Re: Connections at one time #100700 16/10/04 04:24 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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
  }
}



New username: hixxy
Re: Connections at one time #100701 16/10/04 04:27 PM
Joined: Sep 2004
Posts: 85
G
Gameaddix Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
ok, cool, thx