Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. # ATTENTION!
  2. # Plugins are invoked in the order of listing in the plugin config file.
  3.  
  4.  
  5. # Sqlite based user authentication.
  6. #
  7. # This plugin provides a Sqlite based authentication database for
  8. # registered users.
  9. # Use the uhub-passwd utility to create the database and add/remove users.
  10. #
  11. # Parameters:
  12. # file: path/filename for database.
  13. #
  14. #plugin /usr/lib/uhub/mod_auth_sqlite.so "file=/etc/uhub/users.db"
  15.  
  16. # Topic commands.
  17. # Note: "topic" == "hub description" (as configured in uhub.conf)
  18. #
  19. # !topic - change the topic (op required)
  20. # !showtopic - show the topic
  21. # !resettopic - reset the topic to the default (op required)
  22. #
  23. # This plugins takes no parameters.
  24. #plugin /usr/lib/uhub/mod_topic.so
  25.  
  26. # Log file writer
  27. #
  28. # Parameters:
  29. # file: path/filename for log file.
  30. # syslog: if true then syslog is used instead of writing to a file (Unix only)
  31. plugin /usr/lib/uhub/mod_logging.so "file=/var/log/uhub.log"
  32.  
  33. # A simple example plugin
  34. #plugin /usr/lib/uhub/mod_example.so
  35.  
  36. # A plugin sending a welcome message.
  37. #
  38. # This plugin provides the following commands:
  39. # !motd - Message of the day
  40. # !rules - Show hub rules.
  41. #
  42. # Parameters:
  43. # motd: path/filename for the welcome message (message of the day)
  44. # rules: path/filename for the rules file
  45. #
  46. # NOTE: The files MUST exist, however if you do not wish to provide one then these parameters can be omitted.
  47. #
  48. # The motd/rules files can do the following substitutions:
  49. # %n - Nickname of the user who entered the hub or issued the command.
  50. # %a - IP address of the user
  51. # %c - The credentials of the user (guest, user, op, super, admin).
  52. # %% - Becomes '%'
  53. # %H - Hour 24-hour format (00-23) (Hub local time)
  54. # %I - Hour 12-hour format (01-12) (Hub local time)
  55. # %P - 'AM' or 'PM'
  56. # %p - 'am' or 'pm'
  57. # %M - Minutes (00-59) (Hub local time)
  58. # %S - Seconds (00-60) (Hub local time)
  59. plugin /usr/lib/uhub/mod_welcome.so "motd=/etc/uhub/motd.txt rules=/etc/uhub/rules.txt"
  60.  
  61. # Load the chat history plugin.
  62. #
  63. # This plugin provides chat history when users are connecting, or
  64. # when users invoke the !history command.
  65. # The history command can optionally take a parameter to indicate how many lines of history is requested.
  66. #
  67. # Parameters:
  68. # history_max: the maximum number of messages to keep in history
  69. # history_default: when !history is provided without arguments, then this default number of messages are returned.
  70. # history_connect: the number of chat history messages to send when users connect (0 = do not send any history)
  71. plugin /usr/lib/uhub/mod_chat_history.so "history_max=100 history_default=100 history_connect=10"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement