[cl-irc-devel] message nickname

Erik Huelsmann ehuels at gmail.com
Mon May 7 19:20:21 UTC 2007


On 5/7/07, Mikhail Shevchuk <mikhail.shevchuk at gmail.com> wrote:
> Hi,
>
> I have a simple msg-hook here:
> (defun msg-hook (message)
>   (progn
>     (format *jabber-bot-conn* "_~A_: /~a/"
>             (cl-irc:user message) (second (cl-irc:arguments message)))
>     (force-output *jabber-bot-conn*)))
>
> (cl-irc:user message) expression evaluates to strings like: ~mico or ~user,
> how can I get real nicknames instead of this ?

You can find the real nickname by using (cl-irc:source message). I
don't think the documentation is really clear about this. I'll look
into enhancing it.

HTH,

Erik.



More information about the cl-irc-devel mailing list