XMPP group chat colors

Eion Robb eion at robbmob.com
Mon Jun 1 19:32:58 EDT 2020


Hi Adam,

Colours for usernames in chats are hard-coded in Pidgin and won't be picked
up from the server:
https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtknickcolors.h
- for the first 24 colours and
https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtkconv.c#lines-10294
- for generating the next 196

https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtkconv.c#lines-173:191
is the algorithm used for turning a nickname into a colour

Cheers,
Eion

On Tue, 2 Jun 2020 at 11:27, Adam Berti <adam at bertigroup.com> wrote:

> Hi All! Wondering if anyone can point me in the wrong direction. I’m got a
> setup going with Openfire XMPP Server and Pidgin as the client. The
> challenge we have run into is we use this in a setup where the user names
> are colors to represent the room and where they are. But because the group
> chat seems to have a mind of it’s own (algorithms), users are assigned
> colors which can’t be changed.
>
> The issue is when the user red chats and their name is in purple. And
> purple is chatting and their name is in blue. And blue is chatting and
> their name is in brown. I Think you get the idea.
>
> I’ve been doing some reading – sounds like this is maybe in development
> for the XMPP code, but I’m wondering if there’s some theme or something we
> can do to overcome this now, besides renaming our rooms!
>
> Thanks.
> Adam
>
>
> _______________________________________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> https://lists.pidgin.im/listinfo/support


More information about the Support mailing list