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

Add support for invite-notify #359

Merged
merged 2 commits into from
Apr 16, 2022
Merged

Conversation

progval
Copy link
Member

@progval progval commented Mar 30, 2022

https://ircv3.net/specs/extensions/invite-notify

Also remove the comments about IRCv3.1 / IRCv3.2, because IRCv3 does not
classify its specs this way anymore.

How to test:

  1. connect to a network that supports invite-notify (eg. irc.ergo.chat)
  2. join a room, get opped
  3. ask another op to invite someone
  4. "X invites Y into Z" appears on the chat

Behavior is unchanged when being invited (ie. it still creates a private chat with the inviter)

https://ircv3.net/specs/extensions/invite-notify

Also remove the comments about IRCv3.1 / IRCv3.2, because IRCv3 does not
classify its specs this way anymore.
@SilverRainZ SilverRainZ mentioned this pull request Apr 4, 2022
21 tasks
@SilverRainZ SilverRainZ added this to the 1.4 milestone Apr 4, 2022
chat = srn_server_add_and_get_chat(srv, origin);
g_return_if_fail(chat);
}

Copy link
Member

Choose a reason for hiding this comment

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

No need to "try get a SrnChat, otherwise add one", this is what srn_server_add_and_get_chat do.

Copy link
Member Author

@progval progval Apr 16, 2022

Choose a reason for hiding this comment

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

Not exactly. This code gets the channel chat if it already exists, and add/gets a chat with the origin otherwise

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I get it.

src/core/app_irc_event.c Outdated Show resolved Hide resolved
@SilverRainZ SilverRainZ merged commit a89ff65 into SrainApp:master Apr 16, 2022
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