# HG changeset patch # User Mikael Berthe # Date 1163626595 -3600 # Node ID 60c94b697f61ee9c892e300313b8ef4b24b24c24 # Parent 9d5f6e0ea7b39b85efd7ea482b14726e0b3ad46d Show in /info when the contact has an annotation diff -r 9d5f6e0ea7b3 -r 60c94b697f61 mcabber/src/commands.c --- a/mcabber/src/commands.c Wed Nov 15 22:24:20 2006 +0100 +++ b/mcabber/src/commands.c Wed Nov 15 22:36:35 2006 +0100 @@ -1290,6 +1290,20 @@ (type == ROSTER_TYPE_SPECIAL ? "special" : "unknown")); } g_free(buffer); + + // Tell the user if this item has an annotation. + if (type == ROSTER_TYPE_USER || + type == ROSTER_TYPE_ROOM || + type == ROSTER_TYPE_AGENT) { + struct annotation *note = jb_get_storage_rosternotes(jid); + if (note) { + // We do not display the note, we just tell the user. + g_free(note->text); + g_free(note); + scr_WriteIncomingMessage(jid, "(This item has an annotation)", 0, + HBB_PREFIX_INFO); + } + } } // room_names() is a variation of do_info(), for chatrooms only