Skip to content

Conversation

@trevarj
Copy link
Contributor

@trevarj trevarj commented Sep 4, 2020

Falling back to getting the server name from the prefix, since some IRC servers don't comply with the standard.

Recommended by https://www.irc.com/dev/docs/refs/numerics/002.html

The <servername> may also include other information depending on the server software, for example irc.example.com[203.0.113.15/6667], so we instead recommend relying on the prefix or the RPL_MYINFO (004) numeric if knowing the current server hostname is desired.

Closes #239

@osa1
Copy link
Owner

osa1 commented Sep 4, 2020

Thanks @trevarj . I added two more tests. Will merge when CI finishes.

@osa1 osa1 merged commit cbaf514 into osa1:master Sep 4, 2020
@trevarj trevarj deleted the rpl_yourhost branch September 4, 2020 14:58
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.

Don't rely on RPL_YOURHOST parsing for connectivity checking

2 participants