Event: onCommand

Execute special command.


function onCommand(server, origin, channel, message)


  • server: the current server,
  • origin: who invoked the command,
  • channel: the channel where the message comes from,
  • message: the real message, without the ! part.

Special commands are not real IRC events. They are called from channel messages with a specific syntax using a delimiter and the plugin name.

For instance, with default irccd parameters, saying on a channel !ask foo will call the special command of the plugin named ask.