zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Isverified boolean not working #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. See if a user is verified

What is the expected output? What do you see instead?
true if verified is expected. always false

What version of the product are you using? On what operating system?
1.7 windows 8 

Please provide any additional information below.
It could just be the irc network im on, but i doubt it
Im using this on esper (irc.esper.net)

Original issue reported on code.google.com by zcrai...@gmail.com on 5 Nov 2012 at 9:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm going to assume you mean isIdentified() method of the User class since the 
word "verified" doesn't exist in the code base

Turns out that I made in the incorrect assumption that if your realname/login 
started with a tilde (~) that you were unidentified. I know I've seen that 
system somewhere before but apparently freenode and esper do not use that 
system.

I'm not sure exactly how to handle this other than rewriting it to query 
nickserv with "nickserv status username". However that's slow and not ideal.

I will continue to research other options

Original comment by Lord.Qua...@gmail.com on 9 Nov 2012 at 5:41

GoogleCodeExporter commented 9 years ago
Dunno why i typo'd that, i feel a bit stupid right now for not reading over, 
but yes. its isIdentified that i meant ^_^

Original comment by zcrai...@gmail.com on 16 Nov 2012 at 11:30

GoogleCodeExporter commented 9 years ago
Sorry for the delay

I have decided to query the user with a Whois and use its 330 response 
(WhoisEvent.getRegisteredAs()) to determine if the user is logged in. Its 
expensive, but I've clarified this in the comments and will do in the 
changelog. Its more of a convenience method than anything else. Added in 
Revision 38a0b1e2b255

Original comment by Lord.Qua...@gmail.com on 30 Nov 2012 at 2:46