Skip to content

SiteBot now respects server-assigned nickname (e.g. NICKLEN truncation)#496

Open
tsautier wants to merge 1 commit into
drftpd-ng:masterfrom
tsautier:fix/issue-190
Open

SiteBot now respects server-assigned nickname (e.g. NICKLEN truncation)#496
tsautier wants to merge 1 commit into
drftpd-ng:masterfrom
tsautier:fix/issue-190

Conversation

@tsautier

@tsautier tsautier commented Jan 14, 2026

Copy link
Copy Markdown

Problem

SiteBot's getNick() method returns the configured nickname rather than the actual IRC nickname assigned by the server. When the IRC server has a NICKLEN limit (e.g., 9 characters), the bot's actual name gets truncated but the code doesn't reflect this.

Solution

Update getNick() to return the actual IRC nickname after connection, accounting for server-imposed length limits.

Changes Made

  • Modified SiteBot.java to track and return the actual nickname assigned by the server
  • Nickname now correctly reflects IRC server NICKLEN restrictions

Fixes: #190

@tsautier

Copy link
Copy Markdown
Author

@mvangoor @hrxcodes for review

@tsautier tsautier changed the title Fix/issue 190 SiteBot now respects server-assigned nickname (e.g. NICKLEN truncation) Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SiteBot ignoring NICKLEN by server

1 participant