Skip to content

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

Merged
SilverRainZ merged 2 commits into
SrainApp:masterfrom
progval:unknown-cap
Jan 23, 2022
Merged

Silence "Unknown capability" warning on trailing ' '#349
SilverRainZ merged 2 commits into
SrainApp:masterfrom
progval:unknown-cap

Conversation

@progval

@progval progval commented Jan 22, 2022

Copy link
Copy Markdown
Member

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

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

@SilverRainZ SilverRainZ left a comment

Copy link
Copy Markdown
Member

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 : (

Comment thread src/core/app_irc_event.c Outdated
if (nb_caps && !g_strcmp0(caps[nb_caps-1], "")) {
caps[nb_caps-1] = NULL;
}

Copy link
Copy Markdown
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