Page 1 of 1

Prevent services (+S) from lusers stats?

Posted: Sun Jun 27, 2004 9:33 am
by Plasma
I am wondering how it is possible to prevent services (chanserv, nickserv etc) from:

* Appearing as operators under /lusers (eg, 9 operators online)

Current Local Users: 1 Max: 2
Current Global Users: 16 Max: 17

Local Users = 1 - thats me, a client
Global users being 16 thats several services bots (channel bots made by anope and chanserv, nickserv etc).

How can I practically make them invisible from the network stats wise, so we dont get increased numbers which are not real.

Hide U-Lined servers is enabled.

Preferably do not count any users which have umode +S (Network Service) counted in /lusers for global/local users and operators online.

Is there a module for this or can this feature be put in (the core or module)?

Cheers,
Plasma

Posted: Sun Jun 27, 2004 2:16 pm
by Syzop
usermode +H hides ircop status, so if you can let those services clients set umode +H on themselves... :).

Posted: Mon Jun 28, 2004 2:48 am
by aquanight
Syzop wrote:usermode +H hides ircop status, so if you can let those services clients set umode +H on themselves... :).
I think what he means is he wants the LUSERS counts to show REAL users. Services are anything BUT real users. Basically, if it's behind a uline'd server and has +S, don't count it in LUSERS for any reason.

Posted: Mon Jun 28, 2004 2:57 am
by Syzop
Ah ok, in that case: you can't.

I guess you could request it in the modules section *move*.

Posted: Mon Jun 28, 2004 2:59 am
by Plasma
Yep thats exactally how I want it... Ulined servers = not counted as opers or global users (but may be seen in /map etc)

Anyone? :)

Posted: Mon Jul 19, 2004 4:45 pm
by Jason
I think that would be a nice official Unreal modification, rather than just a module, I cant see any good reason for including services, and can think of several for Not including Ulined servers

Posted: Mon Jul 19, 2004 11:16 pm
by w00t
Sounds nice, but not exactly high priority.

It'd probably stuff things up somewhere anyway :D

Posted: Tue Jul 20, 2004 11:36 am
by Plasma
Ive just put it in myself for Anope IRC Services (devel 1.7.4 has umode settings in the source you can modify), and I simply added +H to their usermode, which worked fine.

Posted: Mon Jan 31, 2005 2:29 pm
by Plasma
Massive-bump, but thought id rasie this point:

Can u-lined servers (eg stats, services) be excluded from the operators count?

My problem is solved (I edited the anope source to have their usermodes include +H), but it will help others less experienced, and also is not a 'true indication' of 'real' operators online.

Re: Prevent services (+S) from lusers stats?

Posted: Wed Feb 13, 2013 10:21 pm
by Gigabit
Sorry for the bump but..... Did this ever get included because it can't find a module or configuration setting for this and all Google searches lead to the two forum posts here asking for the same thing :

Can u lined servers (services) be excluded from the lusers command completely?

Re: Prevent services (+S) from lusers stats?

Posted: Thu Feb 14, 2013 5:28 am
by katsklaw
Bottom Line: It's up to your services package to set user modes on it's own users. In fact all ircds on the network manage user modes for their local clients, services is no different.

Contact your services package developers on how to set +H on their pseudo-clients. Not only does this option already exist but it's far more reliable than every ircd altering their internal user count.

Re: Prevent services (+S) from lusers stats?

Posted: Thu Feb 14, 2013 8:08 am
by Gigabit
This will stop the services clients showing up as Oper in lusers granted, but this wont stop them showing up as normal users, which as discussed they are not normal users.

The oper counting doesnt bother me that much, its the "global" luser count including 10-15 services "users".

Re: Prevent services (+S) from lusers stats?

Posted: Thu Feb 14, 2013 8:48 pm
by katsklaw
I understand your point but I also understand that users verse enough in IRC to know what they are reading in /lusers are also verse enough to know that it includes services, eggdrops, stats and other such "not exactly human" type connections. The fact that /lusers output calls them "users" is a bit of a misnomer as they are more accurately called "client connections" .

HOWEVER, I took the liberty of filling out a feature request for you. It's found at: http://bugs.unrealircd.com/view.php?id=4172

Re: Prevent services (+S) from lusers stats?

Posted: Thu Feb 14, 2013 8:53 pm
by Gigabit
Thanks :)

Re: Prevent services (+S) from lusers stats?

Posted: Fri Feb 15, 2013 6:44 pm
by MightyWings
Not sure how relevent this is, but this module http://modules.unrealircd.org/modview.php?mod=45 shows opers etc that ARE NOT set +H, perhaps, there could be some sort of patch that will apply this to lusers.c, but that would count as a "core modification" and you would lose all support.