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

Silence "Unknown capability" warning on trailing ' ' #349

Merged
merged 2 commits into from
Jan 23, 2022

Conversation

progval
Copy link
Member

@progval progval commented Jan 22, 2022

This happens on "CAP ACK" from Ergo and UnrealIRCd.

This happens on "CAP ACK" from Ergo and UnrealIRCd.
Copy link
Member

@SilverRainZ SilverRainZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I always get this warning but tooo lazy to fix it : (

if (nb_caps && !g_strcmp0(caps[nb_caps-1], "")) {
caps[nb_caps-1] = NULL;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what we need it just use g_strchomp before split.

@SilverRainZ SilverRainZ added this to the 1.4 milestone Jan 23, 2022
@SilverRainZ SilverRainZ merged commit 46036ed into SrainApp:master Jan 23, 2022
@progval progval deleted the unknown-cap branch January 23, 2022 11:00
SilverRainZ pushed a commit that referenced this pull request Feb 10, 2022
* Silence "Unknown capability" warning on trailing ' '

This happens on "CAP ACK" from Ergo and UnrealIRCd.

* Simplify previous commit, using g_strchomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants