Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1023:94d9a3cbb211
Remove useless message
Doing /info was noisy with a server without private storage support.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 18 Nov 2006 15:48:49 +0100 |
parents | 4c8d7b558e83 |
children | f7ef8003fc35 |
comparison
equal
deleted
inserted
replaced
1022:4c8d7b558e83 | 1023:94d9a3cbb211 |
---|---|
561 else | 561 else |
562 notetxt = msg; | 562 notetxt = msg; |
563 jb_set_storage_rosternotes(jid, notetxt); | 563 jb_set_storage_rosternotes(jid, notetxt); |
564 g_free(msg); | 564 g_free(msg); |
565 } else { // Display a note | 565 } else { // Display a note |
566 struct annotation *note = jb_get_storage_rosternotes(jid); | 566 struct annotation *note = jb_get_storage_rosternotes(jid, FALSE); |
567 if (note) { | 567 if (note) { |
568 display_and_free_note(note, jid); | 568 display_and_free_note(note, jid); |
569 } else { | 569 } else { |
570 scr_WriteIncomingMessage(jid, "This item doesn't have a note.", 0, | 570 scr_WriteIncomingMessage(jid, "This item doesn't have a note.", 0, |
571 HBB_PREFIX_INFO); | 571 HBB_PREFIX_INFO); |
1329 | 1329 |
1330 // Tell the user if this item has an annotation. | 1330 // Tell the user if this item has an annotation. |
1331 if (type == ROSTER_TYPE_USER || | 1331 if (type == ROSTER_TYPE_USER || |
1332 type == ROSTER_TYPE_ROOM || | 1332 type == ROSTER_TYPE_ROOM || |
1333 type == ROSTER_TYPE_AGENT) { | 1333 type == ROSTER_TYPE_AGENT) { |
1334 struct annotation *note = jb_get_storage_rosternotes(jid); | 1334 struct annotation *note = jb_get_storage_rosternotes(jid, TRUE); |
1335 if (note) { | 1335 if (note) { |
1336 // We do not display the note, we just tell the user. | 1336 // We do not display the note, we just tell the user. |
1337 g_free(note->text); | 1337 g_free(note->text); |
1338 g_free(note->jid); | 1338 g_free(note->jid); |
1339 g_free(note); | 1339 g_free(note); |