IRC questions

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

javelinl
a lesser mummy
a lesser mummy
Posts: 70
Joined: Thu Mar 11, 2004 12:40 pm

IRC questions

Post by javelinl » Fri Apr 16, 2004 11:07 am

I previously posted this in plugin discussion, but it seems more appropriate here.

Here's a sample I'm trying that is not working. Maybe someone can explain what I'm doing wrong.


The goal is to have the macro respond to a message from IRC. Right now, the loop starts, and I see "In the loop" in the IRC server every 3 secs. From EQ, I can see messages by others from the IRC server.

But the Event_Chat code is never kicked off.



====
#chat IRC

Sub Main

:Mainloop
/doevents

/delay 3s
/i say In the loop

/goto :mainloop

/return


Sub Event_Chat(ChatType,Sender,ChatText)

/i say message for @sender of @ChatText

/return
======

javelinl
a lesser mummy
a lesser mummy
Posts: 70
Joined: Thu Mar 11, 2004 12:40 pm

Answered :)

Post by javelinl » Fri Apr 16, 2004 1:25 pm

Macrofiend pointed out that

#chat IRC isn't a valid option.

I changed the code to
#chat GROUP

and the events trigger.