On 01/14/05 16:39:45, Don Seiler wrote:
> Along these same lines, buddy.c has this function:
>=20
> static gboolean
> bnet_nicks_equal(const gchar *nick1, const gchar *nick2) {
> return (gaim_utf8_strcasecmp(nick1, nick2) =3D=3D 0);
> }
>=20
> In proto.c I have a similar function, only I use gaim_utf8_collate(),
> based on grim's suggestion. I also call gaim_utf8_validate() on each
> nick before hand. I suggest changing this function to do that, as
> well as exposing it so I can call it from proto.c for seeing if we =20
> sent the emotes.
Well for nicks in hash, keys are all normalized using gaim_normalize(), =20
I don't think we need an extra-check...
Anyway it's a good idea to have a public function to check nicks.
cya
|