Functions | |
int | irc_cmd_msg (irc_session_t *session, const char *nch, const char *text) |
Sends the message to the nick or to the channel. | |
int | irc_cmd_me (irc_session_t *session, const char *nch, const char *text) |
Sends the /me (CTCP ACTION) message to the nick or to the channel. | |
int | irc_cmd_notice (irc_session_t *session, const char *nch, const char *text) |
Sends the notice to the nick or to the channel. |
int irc_cmd_me | ( | irc_session_t * | session, | |
const char * | nch, | |||
const char * | text | |||
) |
Sends the /me (CTCP ACTION) message to the nick or to the channel.
session | An initiated and connected session. | |
nch | A target nick or channel. Must not be NULL. | |
text | Action message text. Must not be NULL. |
Possible error responces for this command from the RFC1459:
On success there is NOTHING generated. However, a LIBIRC_RFC_RPL_AWAY reply can be also generated.
irc_cmd_msg | ( | irc_session_t * | session, | |
const char * | nch, | |||
const char * | text | |||
) |
Sends the message to the nick or to the channel.
session | An initiated and connected session. | |
nch | A target nick or channel. Must not be NULL. | |
text | Message text. Must not be NULL. |
Possible error responces for this command from the RFC1459:
On success there is NOTHING generated.
int irc_cmd_notice | ( | irc_session_t * | session, | |
const char * | nch, | |||
const char * | text | |||
) |
Sends the notice to the nick or to the channel.
session | An initiated and connected session. | |
nch | A target nick or channel. Must not be NULL. | |
text | Notice text. Must not be NULL. |
The only difference between message and notice is that, according to RFC 1459, you must not automatically reply to NOTICE messages.
Possible error responces for this command from the RFC1459:
On success there is NOTHING generated. On notices sent to target nick, a LIBIRC_RFC_RPL_AWAY reply may be generated.