School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,421 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,526 people online right now. Registration is fast and FREE... Join Now!




IRC ACTION

 

IRC ACTION

Kirth

7 Feb, 2009 - 05:39 AM
Post #1

D.I.C Head
**

Joined: 9 Jul, 2008
Posts: 152



Thanked: 8 times
My Contributions
I'm not too sure whether this is the right place to post, but it looked like the most accurate one to me.

I'm trying to figure out which command I'd be sending to make my IRC bot do the /me thing. Example:
CODE
* gabehabe humps sebastian.


To send a normal chat message I'd be doing this:
CODE
"PRIVMSG #dreamincode : Danny, leave me alone!"


I've read something about ACTION in the IRC Protocol manual (http://www.irchelp.org/irchelp/rfc/rfc.html) - yet I can't find anything about it now.

Any help'd be greatly appreciated.

User is offlineProfile CardPM
+Quote Post


gabehabe

RE: IRC ACTION

7 Feb, 2009 - 06:18 AM
Post #2

Sexy DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 8,827



Thanked: 175 times
Dream Kudos: 3275
Expert In: Lots of things.

My Contributions
Finally figured it out, Sebastian.

"PRIVMSG #" channel_name + " :\u0001" + "ACTION " + msg + "\u0001"

Example, to say I'm awesome in the </dream.in.code> channel:
"PRIVMSG #dreamincode :\u0001ACTION is awesome\u0001"

Output will be:
* gabehabe is awesome
User is offlineProfile CardPM
+Quote Post

Kirth

RE: IRC ACTION

7 Feb, 2009 - 07:27 AM
Post #3

D.I.C Head
**

Joined: 9 Jul, 2008
Posts: 152



Thanked: 8 times
My Contributions
Thank you gabehabe! Works like a charm.
User is offlineProfile CardPM
+Quote Post

emacrack

RE: IRC ACTION

28 Mar, 2009 - 07:51 AM
Post #4

New D.I.C Head
*

Joined: 28 Mar, 2009
Posts: 6


My Contributions
Hey!!! I tried to use this instruction to do the /me thing in visual basic but, didn't work. I get the literal text in the chat window. I mean:

Use this instruction: "PRIVMSG #channelname :\u0001ACTION is awesome\u0001"

And I get in the chat box: \u0001ACTION is awesome\u0001

I'm using visual basic, It could be because of the unicode sentence \u0001?? Maybe it's different in VB. Greetings!!
User is offlineProfile CardPM
+Quote Post

emacrack

RE: IRC ACTION

29 Mar, 2009 - 11:33 AM
Post #5

New D.I.C Head
*

Joined: 28 Mar, 2009
Posts: 6


My Contributions
Finally I found the solution. The functional instruction in Visual Basic 6 is:

"PRIVMSG #channelname :" + Chr(1) + "ACTION " + Text1.Text + Chr(1)

Greetings!!
User is offlineProfile CardPM
+Quote Post

Mullins

RE: IRC ACTION

25 Jun, 2009 - 01:44 AM
Post #6

New D.I.C Head
*

Joined: 19 Jun, 2009
Posts: 10

QUOTE(emacrack @ 29 Mar, 2009 - 11:33 AM) *

Finally I found the solution. The functional instruction in Visual Basic 6 is:

"PRIVMSG #channelname :" + Chr(1) + "ACTION " + Text1.Text + Chr(1)

Greetings!!



It's because you where escaping the " :\u0001ACTION".
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 12:10AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month