zD12 / pircbotx

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

Create whois(user) method #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. start bot
2. connect to network
3. execute whois(user) method

What is the expected output?

Would return a user object containing all the good stuff like nick, name, 
realname, host. whois(user).getHost() ect ect.

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

PircBotX 1.7
Linux

Please provide any additional information below.

Right now I can do something along the lines of:
getBot().getUser(whoisTarget)

which returns the correct info if the whoisTarget user is in the channel with 
the bot. If the user is not in the channel then no real info is returned.

Original issue reported on code.google.com by mikerobi...@gmail.com on 26 Jul 2012 at 1:14

GoogleCodeExporter commented 9 years ago
Sorry for taking so long

I think a better option would be to create a WhoisEvent. Then you can do 
sendRawLine("WHOIS users") and then wait for the right whois event. 

Original comment by Lord.Qua...@gmail.com on 9 Aug 2012 at 7:07

GoogleCodeExporter commented 9 years ago
Added  Revision 7641290f3b69 then refined in later commits 

Deployed a snapshot as well so you can test it if you want

Original comment by Lord.Qua...@gmail.com on 11 Aug 2012 at 11:30