6.3 Sending commands to the IRC server
There are three commands with which you can send commands to the IRC server.
These commands are putserv, puthelp and putquick.
All of these commands do exactly the same thing, but they use different queues.
The putquick command uses the fastest queue and is used if you want something to be sent to the
server immediantly.
The putserv command uses the normal queue for server messages and is also the command to use when you
are sending something to the server that doesn't need to be rushed.
The puthelp command uses the slowest queues and is used to send things like messages and notices to
other people, because that usually has a lower priority.
The syntax a putquick, putserv or puthelp command is putserv <text> [options].
The <text> is the command and parameters you want to send to the IRC server.
If you want to send a message to someone or a channel, the syntax would be
"PRIVMSG <nickname/channel> :<message>" or if you want to send a notice the syntax would be
"NOTICE <nickname/channel> :<message>", where <nickname/channel> is the nickname or channel to which you
want to send the message and <message> is the message that you want to send.
For example puthelp "PRIVMSG foo :Hi there." would send the message "Hi there." to the nickname
"foo".
The [options] are the parameters for the command. At the moment there is only one parameter and that's -next.
This will push your command to the front of the queue that the command uses and thereby sending it faster.
More information about IRC commands can be found in Appendix
A.
|