Skip to content

Greet new IRC users only on first message#290

Open
Mounikaishu wants to merge 1 commit intopubliclab:mainfrom
Mounikaishu:new-user-greeting
Open

Greet new IRC users only on first message#290
Mounikaishu wants to merge 1 commit intopubliclab:mainfrom
Mounikaishu:new-user-greeting

Conversation

@Mounikaishu
Copy link

Fixes #143

This update modifies voice.js so that IRC users are greeted only after sending their first message,
instead of immediately upon joining.
*Added a memory tracker (greetedUsers) to keep track of who has already been greeted.
*The welcome message is sent only once per user.
*All existing functionality for Matrix users, modes, and PM instructions remains unchanged.

This ensures new users are welcomed without spamming the chat and aligns with the requested behavior.

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.

Make "welcome" messages only after someone speaks up

1 participant