[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetalk-dev] [PATCH] jabber iqs
From: |
Anand Babu |
Subject: |
Re: [Freetalk-dev] [PATCH] jabber iqs |
Date: |
Mon, 14 Aug 2006 19:11:10 -0700 |
User-agent: |
GNU/Emacs/Mutt |
On Sat, Aug 12, 2006 at 07:00:57PM +0200, Matthias Quasthoff wrote:
,----
| Hello,
|
| Trying to implement the proud-of-freetalk stuff the XMPP way, it
| pretty much seems I should ask a question regarding function names
| and place. In the meantime
|
| $ /freetalk <the-other-guy>@jabber.org.au/<the other guy>s PowerBook
| G4 12"
| No, but <the-other-guy>@jabber.org.au is using iChatAgent 3.1.5
| (v436)
|
| works. Neat? But it turned out I need at least three new functions
| for this task:
| - one answering iq:version queries (responding "freetalk" "0.7")
| - one querying iq:versions of buddies
| - one processing the iq:version results running a new hook allowing
| for formatting client name, version and os properly.
|
| What naming scheme for these functions would you suggest? Other iq
| query functions should IMO be able to follow this scheme. So
| something like
|
| ft_msg_iq_{version,last,disco}_{get,result}_cb and
| do_iq_query_{version,last,disco} if needed
|
| would look good. But where to put it? To a new file iq.{c,h}? It
| seems to make sense, but I don't want to leave this undiscussed :-/
| There is a lot of iq and similar stuff that could be implemented
| later on.
|
| Thanks again,
| Matthias
`----
I am now serious thinking of ditching proud-of-freetalk.scm and
just display agent and version along the side of buddy name.
-------------------------------------------------------
(ft-iq-version-set "name" "version" "os")
(ft-iq-version-set "freetalk" (ft-version) "
-------------------------------------------------------
(ft-iq-version remote-buddy)
=> ("iChatAgent" "3.1.5" "(v436)")
-------------------------------------------------------
(define (ft-iq-version-callback who-asked)
(display (string-append who-asked "is checking on you :p")))
(add-hook! ft-iq-version-hook ft-iq-version-callback)
-------------------------------------------------------
Remove proud-of-freetalk.scm and add this to roster.scm /who.
--
Anand Babu
GPG Key ID: 0x62E15A31
Blog [http://ab.freeshell.org]
The GNU Operating System [http://www.gnu.org]