zD12 / pircbotx

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

NickAlreadyInUseEvent only triggered when connecting, why not always? #198

Closed GoogleCodeExporter closed 9 years ago

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

Try to change the nick to a nick in use with sendIRC().changeNick()

What is the expected output? What do you see instead?

If you connect the NickAlreadyInUseEvent is triggered when the nick is in 
use... but it doesn't trigger after you are already connected to the server 
with a different nick. AutoNickChange true or false makes no difference. The 
name suggests it always triggers, otherwise it would need to be 
NickAlreadyInUseOnConnectEvent. I tried to make a function to get the original 
nick back if someone takes it and stumbled upon this. Any idea how to get 
around this?

What version of the product are you using? On what operating system?
2.0.1 windows 8 X64 with jdk 1.8u11 x64

Please provide any additional information below.

Original issue reported on code.google.com by Bert.Moo...@gmail.com on 11 Aug 2014 at 9:12

GoogleCodeExporter commented 9 years ago
While it's easy to get around this with the onServerResponse function, imho the 
NickAlreadyInUseEvent should still trigger every time, or the explanation 
should make clear it only triggers when connecting.
My 2 cents ;)

Original comment by Bert.Moo...@gmail.com on 17 Aug 2014 at 9:52

GoogleCodeExporter commented 9 years ago
I agree. It was part of the connect code for historical reasons. Fixed and 
tested in Revision 2924dbca3f8f

Original comment by Lord.Qua...@gmail.com on 31 Aug 2014 at 7:14