PHP Manual: ircg_msg
ircg_msg
Description
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.
Parameters
connectionA connection resource handle returned by ircg_pconnect().
recipientA
recipientstarting with # or & will send themessageto a channel, anything else will be interpreted as a username.messageThe message to be sent.
suppressSetting the optional parameter
suppressto a TRUE value will suppress output of your message to your ownconnection. This so-called loopback is necessary, because the IRC server does not echo PRIVMSG commands back to us.