Problem retrieving information on callback
Marc Lehmann
schmorp at schmorp.de
Mon Oct 4 23:10:54 CEST 2010
On Mon, Oct 04, 2010 at 07:00:45AM +0200, David Vildebrand <bkzland at gmx.net> wrote:
> I was trying to follow the examples, but I just can't figure out how to
> retrieve information about who messages are being sent from to a channel on
> privmsg or publicmsg callbacks.
I assume you are talking about AnyEvent::IRC? if yes, it helps to actually
mention this somewhere :)
> Also I'm unsure about whether irc_privmsg or publicmsg is the correct
"publicmsg" is definitely the right way to listen for channel messages
(it's called for privmsgs and notices to channels). looking at the docs, it
seems that you have to extratc it fromt he $msg using e.g. parse_irc_msg or
prefix_nick from AnyEvent::IRC::Util.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list