Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

User count stays zero - but channels are indexed properly

 
Post new topic   Reply to topic    SearchIRC Forum Index -> How to use SearchIRC
Author Message
Yarcanox
none
none


Joined: 10 Oct 2006
Posts: 4

PostPosted: Sep 09, 2009 6:37pm    Post subject: User count stays zero - but channels are indexed properly Reply with quote

Hi.

There seem to be some indexing problems with:
http://searchirc.com/network/Eloxoph

The channels are indexed just fine (the bot also seems to successfully connects multiple times of the day to index), but the user graph always shows 0 users which obviously isn't correct.
Back to top
Trixar_za
Eleet
Eleet


Joined: 10 Dec 2006
Posts: 613
Location: South Africa

PostPosted: Sep 10, 2009 2:39am    Post subject: Reply with quote

I see you use a customly written IRCd (WeIRCd), so the issue might be the wrong string or raw numeric when it comes to the /LUSERS command.

Here is how UnrealIRCd handles it:
Code:
>> :server.here.com 251 Trixar_za :There are 13 users and 17 invisible on 5 servers
>> :server.here.com 252 Trixar_za 4 :operator(s) online
>> :server.here.com 254 Trixar_za 18 :channels formed
>> :server.here.com 255 Trixar_za :I have 7 clients and 3 servers
>> :server.here.com 265 Trixar_za :Current Local Users: 7  Max: 18
>> :server.here.com 266 Trixar_za :Current Global Users: 30  Max: 38

I don't really think it matters how it's formated server side, but more to do with how the strings are structured and/or the raw numerics used.

I could be wrong however, so any IRCd writers or the Bot runners on SIRC should correct me on this if I'm way off base here.

EDIT: Ok, so I went to check out your server, only major difference in your /lusers command is that you use lower case global users and local users instead of Global Users and Local Users and that you're missing the channels formed bit:
Code:
>> :your.server.com 251 Trixar_za :There are 10 users on 1 servers
>> :your.server.com 252 Trixar_za 1 :operator(s) online
>> :your.server.com 255 Trixar_za :I have 10 clients and 1 servers
>> :your.server.com 265 Trixar_za :Current local users: 10  Max: 16
>> :your.server.com 266 Trixar_za :Current global users: 10  Max: 16
Back to top
Yarcanox
none
none


Joined: 10 Oct 2006
Posts: 4

PostPosted: Sep 10, 2009 6:24am    Post subject: Reply with quote

Yea, that might be part of the problem. Still, I didn't think I changed so much that an intelligent parser wouldn't be able to deal with it anymore. But of course things can always break when unexpected things come in. Whatever breaks it, I can't really find out and that's why I made this post to address the people who can (hopefully Smile ).
Back to top
Trixar_za
Eleet
Eleet


Joined: 10 Dec 2006
Posts: 613
Location: South Africa

PostPosted: Sep 10, 2009 9:24am    Post subject: Reply with quote

Yarcanox wrote:
Yea, that might be part of the problem. Still, I didn't think I changed so much that an intelligent parser wouldn't be able to deal with it anymore. But of course things can always break when unexpected things come in. Whatever breaks it, I can't really find out and that's why I made this post to address the people who can (hopefully Smile ).

As I understand it, the irc crawler bots use the /links, /lusers and /list commands extensively, although it may also use /version with some (or just check the 001-005 numerical lines after it connects Razz), so they also depend heavily on them being as close to RFC specification as possible. Going on the RFC, there is nothing wrong with your replies except that you lack the 254 numeric reply, which is the one about channels.

Case shouldn't matter with an intelligent parser, but the lack of certain data just might be what's causing this error. Maybe by adding in the channel numerical reply, you will find that it's suddenly outputing the graphs correctly, because it required both user and channel counts to output it at all.

Call it an educated guess on my part. OK OK, call it more "I can break (and have broken) anything and everything on IRC" kind of guess...
Back to top
Yarcanox
none
none


Joined: 10 Oct 2006
Posts: 4

PostPosted: Sep 10, 2009 9:43am    Post subject: Reply with quote

Wow seems like you were actually right Surprised awesome!!
Back to top
bctrainers
Newbie
Newbie


Joined: 11 Mar 2005
Posts: 76
Location: Kansas City, KS

PostPosted: Sep 11, 2009 5:20am    Post subject: Reply with quote

Interesting, our IRCd has this in the output of /lusers...

Code:
251 bc :There are 0 users and 90 invisible on 10 servers
252 bc 20 :operators online
254 bc 112 :channels formed
255 bc :I have 12 clients and 3 servers
265 bc :Current local users: 12 Max: 43
266 bc :Current global users: 90 Max: 116
NOTICE bc :Highest connection count: 18 (15 users) (625 connections total)


Works just fine here with the LeTTeR CaPItaLs stuff. Smile
Back to top
Trixar_za
Eleet
Eleet


Joined: 10 Dec 2006
Posts: 613
Location: South Africa

PostPosted: Sep 11, 2009 5:46am    Post subject: Reply with quote

bctrainers wrote:
Interesting, our IRCd has this in the output of /lusers...

Code:
251 bc :There are 0 users and 90 invisible on 10 servers
252 bc 20 :operators online
254 bc 112 :channels formed
255 bc :I have 12 clients and 3 servers
265 bc :Current local users: 12 Max: 43
266 bc :Current global users: 90 Max: 116
NOTICE bc :Highest connection count: 18 (15 users) (625 connections total)

Works just fine here with the LeTTeR CaPItaLs stuff. Smile

Yeah, seems it was more the missing raw numerical reply 254 (channels formed reply) of the /lusers command that was causing the trouble rather than the case of the words.

I guess that's where the parser grabs the channel count to generate the channel line in the graphs. Without it the parser was missing half it's data and just didn't output at all.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> How to use SearchIRC All times are GMT - 6 Hours
Page 1 of 1

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer