README 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. The IRC plugin allows users to send and receive notices over an IRC network.
  2. Installation
  3. ============
  4. add "addPlugin('irc',
  5. array('setting'=>'value', 'setting2'=>'value2', ...);"
  6. to the bottom of your config.php
  7. scripts/imdaemon.php included with StatusNet must be running. It will be started by
  8. the plugin along with their other daemons when you run scripts/startdaemons.sh.
  9. See the StatusNet README for more about queuing and daemons.
  10. Settings
  11. ========
  12. host*: Hostname of IRC server
  13. port: Port of IRC server (defaults to 6667)
  14. username*: Username of bot
  15. realname*: Real name of bot
  16. nick*: Nickname of bot
  17. password: Password
  18. nickservpassword: NickServ password for identification
  19. nickservidentifyregexp: Override existing regexp matching request for identification from NickServ
  20. channels: Channels for bot to idle in
  21. transporttype: Set to 'ssl' to enable SSL
  22. encoding: Set to change encoding
  23. pinginterval: Set to change the number of seconds between pings (helps keep the connection open)
  24. Defaults to 120 seconds
  25. regcheck: Check user's nicknames are registered, enabled by default, set to false to disable
  26. regregexp: Override existing regexp matching response from NickServ if nick checked is registered.
  27. Must contain a capturing group catching the nick
  28. unregregexp: Override existing regexp matching response from NickServ if nick checked is unregistered
  29. Must contain a capturing group catching the nick
  30. * required
  31. Example
  32. =======
  33. addPlugin('irc', array(
  34. 'host' => '...',
  35. 'username' => '...',
  36. 'realname' => '...',
  37. 'nick' => '...',
  38. 'channels' => array('#channel1', '#channel2')
  39. ));