Skip to content
This repository was archived by the owner on Aug 3, 2018. It is now read-only.
This repository was archived by the owner on Aug 3, 2018. It is now read-only.

Error in ban command #5

@JamoBox

Description

@JamoBox

Line 91 in Channel.java appears to try and ban a user by their ident, however it is getting their nick instead of their username. This can cause problems when people have different nicks from their usernames.

Line 91:

 this.setMode("+b *!" + user.getNick() + "@*");

When banning foobar!Username@somehost.com in this way it will not effect the user "foobar" as it does not match his ident.

To correct this, you should either use the getUserName() method instead of the getNick() method, or change the ban string so it bans the user's nick instead:

this.setMode("+b " + user.getNick() + "!*@*");

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions