Forum und email

ircg_msg

(PHP 4 >= 4.0.4, PHP 5 <= 5.0.5)

ircg_msg — Send message to channel or user on server

설명

bool ircg_msg ( resource $connection , string $recipient , string $message [, bool $suppress ] )

ircg_msg() will send the message to a channel or user on the server.

매개변수

connection

A connection resource handle returned by ircg_pconnect().

recipient

A recipient starting with # or & will send the message to a channel, anything else will be interpreted as a username.

message

The message to be sent.

suppress

Setting the optional parameter suppress to a TRUE value will suppress output of your message to your own connection . This so-called loopback is necessary, because the IRC server does not echo PRIVMSG commands back to us.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.