deltachat-bot / deltachat-irc-bridge

DeltaChat-Bot that acts as bridge between DeltaChat and IRC.
2 stars 0 forks source link

User uniqueness #2

Open Simon-Laux opened 5 years ago

Simon-Laux commented 5 years ago

treefit: I wonder how user uniqueness is handled, what is used for nicks??in case it is based on user's display name, what happens if I set my nick to 'rtn'?? will be annoyed the IRC user 'rtn' with a bot mentioning him every time I post??? ~adbeniteznautacu on irc

Simon-Laux commented 5 years ago
  1. we should say that bot nicks in direction dc->irc can't exist on two users
  2. we could say that you can't take the username of someone that is currently online unless its your email

-> Thats what I would suggest

adbenitez commented 5 years ago

using email as user's ID (as Matrix email bridge does) solves this

Simon-Laux commented 5 years ago

I'm not sure on whether the bot should share the whole email with irc, but on the other hand it already gets shared anyway when you join the channel group

adbenitez commented 5 years ago

exactly, also sharing the email address isn't that bad, would make it easy to people on IRC to switch to Delta Chat and chat with you by email, what started as an IRC group could end up as an encrypted DC group ;)

adbenitez commented 5 years ago

but well that looks pretty bad to the eye, so maybe letting the users set they own nicks and append '[dc]' to their nick would be more helpful, since the current way ('usernick: ') is way to similar to the way irc users mention each other. So if I send to the bot '/nick adb' the bot will show my messages like 'adb[dc]: '

Simon-Laux commented 5 years ago

great idea, so it would be ${dc_irc_bridge nick}:${user nick}[dc]:${message}

adbenitez commented 5 years ago

also users of matrix are shown like usernick[m] in irc, so it will be more easy to understand for people used to see matrix users, I guess

Simon-Laux commented 5 years ago

I discussed, with @hpk42 and also @Jikstra added some points, the possibility to send like matrix from the nick directly without the bot name in front of it. We came to the conclusion that we probably would need special approval from the folks running freenode for that. But I think that would be better in an separate issue, maybe as bonus option if it is available.

adbenitez commented 5 years ago

well, some users have a dedicated delta chat account like: delta@example.com the bot is using "delta" as nick, if there are another user with that nick already, the bot should set sane defaults nicks and append a sequential number to that nick so they are unique, ex. delta, delta1, delta2, ..., deltaN