[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetalk-dev] Freetalk-dev Digest, Vol 42, Issue 1
From: |
Harshavardhana |
Subject: |
Re: [Freetalk-dev] Freetalk-dev Digest, Vol 42, Issue 1 |
Date: |
Tue, 15 Nov 2011 12:04:29 -0800 |
change callbacks.cc and recompile
set_hook_return (0);
{
FtRosterItem *item = ft_roster_lookup (from);
char *nickname;
if (!item)
nickname = NULL;
else
nickname = item->nickname;
scm_run_hook (ex_message_receive_hook,
scm_list_n (ts ? scm_from_locale_string (ts) :
scm_from_locale_string (""),
scm_from_locale_string (from),
nickname ? scm_from_locale_string
(nickname) : scm_from_locale_string (""),
scm_from_locale_string (msg_str),
SCM_UNDEFINED));
}
Change here "item->nickname" too "item->jid"
-Harsha
> Today's Topics:
>
> 1. Changing output of received message (Christoph Kluenter)
>
>
> Hi,
>
> i want to change the way received messeages are shown.
> Now the Alias or Nick is prepended before the Message. But since I have some
> buddies with the same
> Alias/Nick but different JIDs, I would prefer to see the actual JID before
> the message.
> I searched the extensions but couln't find the hook that replaces the JID
> with the nick
> Any hints ?
>
> Cheers,
> Christoph
>
>
>
> ------------------------------
>
> _______________________________________________
> Freetalk-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/freetalk-dev
>
>
> End of Freetalk-dev Digest, Vol 42, Issue 1
> *******************************************
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Freetalk-dev] Freetalk-dev Digest, Vol 42, Issue 1,
Harshavardhana <=