Skip to content

Commit

Permalink
Add channel context support
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManifolds committed Nov 28, 2022
1 parent e5c55f5 commit 9d1f5a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/mechasqueak/Extensions/IRCPrivateMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ extension IRCPrivateMessage {
if let msgid = self.raw.messageTags["msgid"] {
tags["+draft/reply"] = msgid
}
if self.destination.isPrivateMessage == false {
tags["+draft/channel-context"] = self.destination.name
}
self.client.sendMessage(toTarget: self.user.nickname, contents: message, additionalTags: tags)
}

Expand Down

0 comments on commit 9d1f5a1

Please sign in to comment.