Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make muc_nick return a const char* const #2014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ventosus
Copy link

In the documentation of the muc_nick function we can read:

The nickname is owned by the chat room and should not be modified or freed

We should reflect that in the return type and strdup the value for the plugin API.

Fixes: #2013

In the documentation of the `muc_nick` function we can read:

> The nickname is owned by the chat room and should not be modified or freed

We should reflect that in the return type and `strdup` the value for the
plugin API.

Fixes: profanity-im#2013
@jubalh
Copy link
Member

jubalh commented Jan 20, 2025

@ventosus can you make the coding style change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

return value of prof_get_current_nick cannot be freed
2 participants