DMs are broken if user changes nick
kdkasad opened this issue · comments
Kian Kasad commented
If the user changes their nick using the /NICK
command, the nick
variable never gets updated. But kirc uses this nick
value to check if a message was a message sent directly to the user's nick.
To reproduce:
- Log on to an IRC server
- Send yourself a DM (
@<nick> test message
). This should work as expected. - Change your nick (
/NICK <nick2>
) - Send yourself a DM to this new nick (
@<nick2> test message
).
The message from step 4 will not be highlighted in cyan as a DM should be. Instead, it'll have your nick (i.e. <nick2>
) in brackets as if it was a channel name.