Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How to send ACTION in IRC

Name: Anonymous 2008-01-03 18:47

i'm trying to send an ACTION in irc, first of all i can't find anything about ACTION in rfc1459 so i assume it's client dependant

second, someone told me to send 'PRIVMSG target :\001ACTION foo bar\001' but i don't get that, what the hell is \001 and how do i send this char in c, my manual tells me \001 is SOH in hex, octal and decimal, i think he meant the digit 1 but that didn't work either, it just gets displayed as ACTION foo bar in the channel

Name: Anonymous 2008-01-03 18:58

Read SICP.

>how do i send this char in c
You've got to be fucking shitting me. Just send the goddamned "PRIVMSG target :\001ACTION foo bar\001" string.

Name: Anonymous 2008-01-03 19:29

>>2
ya it should prolly be that simple but i've run into some other problems

a value i set early in the programs execution contains a short string of max 29 characters excluding \0

now this string value is read from command line arguments and then copied into a char string[30]; variable like this
strncpy(string, argv[1], 29);

then i try to copy it again into a struct value, defined like this
struct foo {
 char bar[30];
};

like this
strncpy(foo.bar, string, 29);

but i always end up with an empty foo.bar

also i tried this before, have a pointer in the struct
struct foo {
 char *bar;
};

then simply
foo.bar = NULL;
foo.bar = string;

but the pointer was always NULL even though i could print string's value and use it in functions

Name: Anonymous 2008-01-03 21:19

but the pointer was always NULL even though i could print string's value and use it in functions
That makes no fucking sense

Name: Anonymous 2008-01-03 23:50

"\1ACTION makes a pie\1" => * Nick makes a pie

Name: Anonymous 2008-01-04 6:51

>>4
I KNOW! :(

Name: Anonymous 2008-01-04 7:39

>>6
Learn how to use a fucking debugger, retard.

Name: Anonymous 2008-01-04 7:46

>>7
i use gdb normally but i'm afraid i don't know how to set a breakpoint or whatever to view a certain part of code and how it gets executed, so far i've only used gdb to find out why programs segfault

Name: Anonymous 2008-01-04 7:49

We don't care. RTFM.

Name: Anonymous 2008-01-04 21:31

>>8
:facepalm: google gdb learn

Name: Anonymous 2008-01-04 21:55

>>8
man gdb

Name: Anonymous 2009-03-06 13:57


Name does LWP Simple.

Name: Anonymous 2011-02-04 14:56


Don't change these.
Name: Email:
Entire Thread Thread List