sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Send user metadata for :tell commands. #32

Closed cburschka closed 8 years ago

cburschka commented 8 years ago

:tell universally uses JID rather than room/nick, but it would still help to wrap it in a user span.

<span data-jid="example@domain.com" class="jid-node-example jid-domain-domain.com">
   example@domain.com
</span>

This will add a user context menu (Invite / Direct message) and flairs.

cburschka commented 8 years ago

(Untested as yet)

cburschka commented 8 years ago

PS: Since the recipient will be in the room when the message is printed, they could be looked up in the roster and formatted with their current nick then. Same for the sender, if they're still there.

sylae commented 8 years ago

Aran - are you still sitting on this or am I okay to pull and tinker?

cburschka commented 8 years ago

Go ahead :)

-csb On Dec 21, 2015 5:41 PM, "Sylae Corell" notifications@github.com wrote:

Aran - are you still sitting on this or am I okay to pull and tinker?

— Reply to this email directly or view it on GitHub https://github.com/sylae/ligrev/issues/32#issuecomment-166354572.

sylae commented 8 years ago

PS: Since the recipient will be in the room when the message is printed, they could be looked up in the roster and formatted with their current nick then. Same for the sender, if they're still there.

I like this idea, but for now I'm going to spin it off into another issue.