Gajim should ignore directory category of type server, if an identity with server category is present.
problem
It causes a problem with hosts which run a service directory, those will have:
\<identity category='directory' type='server'/>
... sported in their disco features probably along other identities. That will cause to remove the server software name is present by Gajim as the other will be ignored.
enhancement recommendation
I suggest to check if an identity of category server and type im is present and fetch the name attribute from that instead.