View Issue Details

IDProjectCategoryView StatusLast Update
0003152unrealircdpublic2007-04-19 02:37
ReporterBricker Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
OSNAOS Version0 
Product Version3.2.6 
Summary0003152: sorted /stats o layout
DescriptionYou know, I am on a network that has a lot of olines, and when im trying to sort stuff out, or to see who has what and I do /stats o, its just one bug floppy mess. I was wondering if their would be a way for future releases to make a more clean output. maybe something along the lines of

/stats o

Network Admins

O *@* * Test rDRhgwlcLkKbBnGAaNCzWHtZvqd

Services Admins

O *@* * Test1 rDRhgwlcLkKbBnGAaCzWHtZvqd

Server Admins (which could also include Co-Admins)

etc etc etc... something a little more clean then seeing a whole mess of


O *@* * blah rdhHFHDSHah clients

over and over with differnt flags, names etc. it just becomes a strain for big networks with a lot of ops trying to find exactly where someone is, etc.
TagsNo tags attached.
3rd party modules

Relationships

child of 0003284 closedsyzop 3rd Party Module Wishlist 

Activities

aegis

2006-12-19 23:12

reporter   ~0012858

Hmm, I like this idea, tbh there's always room for improvement, and always room to clean up.

Bock

2006-12-19 23:27

reporter   ~0012859

+1 :]
looks good!

vonitsanet

2006-12-20 18:30

reporter   ~0012864

I like this.
Nice:D

avb

2006-12-20 23:15

reporter   ~0012866

"/stats something" usually can be used by scripts, services, stats, other parsers, etc, and "user friendly formatting" can cause inconvenience for those.

maybe it is better to do this is some other way? not through stats?

Bricker

2006-12-21 00:40

reporter   ~0012867

Last edited: 2006-12-21 19:50

but those who dont use scripts, it comes out messy. me honestly i've never seen anyone that has a script that makes the output of /stats * look good...or do anything with it really. And I've used a lot of scripts in my time. oh, and if it does mess up the scripts, people love to recode! :)



-Edit- Changed "stats" to "scripts" in first line, 6th word from left :P

aquanight

2006-12-24 13:15

reporter   ~0012894

Well the "headers" could just be RPL_TEXT and the rest is the normal numeric.

But as it is, it's easy to have the stats O already sorted (but not pretty-sorted like suggested) - sort them in your config (sort "ascending" (locals first, then globals, admins, etc) and they come out "descending" since unreal reads config file backwards)!

Bricker

2006-12-25 17:35

reporter   ~0012903

Or, in a way to make Unreal a little more appealing, it could be made to send it out more cleanly, or at least make it an option to set before compile, sort of like the prefixes.

aquanight

2006-12-25 20:10

reporter   ~0012905

Last edited: 2006-12-25 20:12

Problem is, if you start changing the numeric formats, you break everything that depends on them. I'm sure unreal's already gotten on many client coders hatelists just because of some of the stuff we've done to numerics (+z numeric, anyone?).

If you look at a lot of the numerics, you'll notice for the most part that they're insanely easy to process by a program. The fields are clearly seperated into seperate parameters, so it's a simple, say, params[5] to get the flags. Numerics are generally machine-readable, such as the /who replies - only a few (RPL_TEXT, motd numerics) are for people. Others that are all text may simply have all their meaning contained entirely in the numeric (RPL_YOUREBANNEDCREEP, RPL_WELCOME, etc - simply receiving these tells you that you're ban user{}'d or allowed in). I believe the intent was that the client program would intercept the numeric, and format it in a more appropriate manner, rather than waste bandwidth and CPU time by having the ircd do it. I know I've made mirc do just that with *:lines. When you see fancy formatting from a numeric (such as is typical for the WHOIS numerics), it's usually the client formatting it, not unreal.

Sorting is an entirely reasonable thing for the ircd to do, however. But once again, it can already be done by sorting your config entries (they're just dumped in reverse order) and thus avoid the ircd having to do it every time (and sorting isn't a cheap process).

WolfSage

2007-04-18 16:19

reporter   ~0013531

How difficult would it be to have the list sorted as it's taken in from the conf? If too, then is there anything we can do aside from your (aquanight) suggestion of ordering them in the conf? If not, can we close this?

stskeeps

2007-04-19 02:36

reporter   ~0013576

I agree with aquanights statement that the admin could just sort the oper {} in the conf, honestly. A third party module for this would be better

Issue History

Date Modified Username Field Change
2006-12-19 23:09 Bricker New Issue
2006-12-19 23:12 aegis Note Added: 0012858
2006-12-19 23:27 Bock Note Added: 0012859
2006-12-20 18:30 vonitsanet Note Added: 0012864
2006-12-20 23:15 avb Note Added: 0012866
2006-12-21 00:40 Bricker Note Added: 0012867
2006-12-21 19:50 Bricker Note Edited: 0012867
2006-12-24 13:15 aquanight Note Added: 0012894
2006-12-25 17:35 Bricker Note Added: 0012903
2006-12-25 20:10 aquanight Note Added: 0012905
2006-12-25 20:12 aquanight Note Edited: 0012905
2007-04-18 16:19 WolfSage Note Added: 0013531
2007-04-19 02:36 stskeeps Status new => closed
2007-04-19 02:36 stskeeps Note Added: 0013576
2007-04-19 02:36 stskeeps Resolution open => no change required
2007-04-19 02:37 stskeeps Relationship added child of 0003284