Quick question (quakenet id)

28 views
Skip to first unread message

Rafael Lucio

unread,
Apr 9, 2013, 11:28:13 AM4/9/13
to pirc...@googlegroups.com
I need to get the quakenet id and I came from Pircbot where I know that he doesn't save this data correctly.
I assumed that you didn't fix this, so I went straight to the source code and managed to make it possible using a method from user called isVerified().

Is there any other better way to do this? If not, I would suggest to implement to get the Login of the user from the 330 raw code.


Leon Blakey

unread,
Apr 9, 2013, 11:46:55 AM4/9/13
to pirc...@googlegroups.com
What do you mean by quakenet id? There's real name and registered as in the user object




--
You received this message because you are subscribed to the Google Groups "pircbotx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pircbotx+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rafael Lucio

unread,
Apr 9, 2013, 11:51:22 AM4/9/13
to pirc...@googlegroups.com
Yeah, maybe its because i'm using 1.8 version, but looking on the 1.9 source code I dont see the registeredAs property on the User, just on the WhoisEvent. Is that it? 

Leon Blakey

unread,
Apr 9, 2013, 12:04:13 PM4/9/13
to pirc...@googlegroups.com
I'm sorry, your right it's only WhoisEvent. This is because registered as is a nicksev thing that is only shown in whois. isVerified was only provided as a convenience

poste9

unread,
Apr 9, 2013, 12:09:53 PM4/9/13
to pirc...@googlegroups.com
I had to open the source just to add this attribute on the User class and now everytime you release a new version I have to do this again. Is this change commitable?


2013/4/9 Leon Blakey <lord.qu...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "pircbotx" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pircbotx/h61pHFeh4og/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to pircbotx+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Leon Blakey

unread,
Apr 9, 2013, 12:25:09 PM4/9/13
to pirc...@googlegroups.com
Can you provide a patch?

poste9

unread,
Apr 9, 2013, 12:36:18 PM4/9/13
to pircbotx
sure, when I get home I will do. 

Just see if you like this approach:

getRegisteredAs : 
    if (isVerified()) return registeredAs; 
    else return null;

isVerified :
    registeredAs = event.getRegisteredAs();


2013/4/9 Leon Blakey <lord.qu...@gmail.com>



--
Reply all
Reply to author
Forward
0 new messages