Both sides previous revisionPrevious revisionNext revision | Previous revision |
module:chat_sec [2021/02/14 13:33] – irc_server and irc_channel can now be a comma-separated list digital man | module:chat_sec [2023/04/02 19:55] (current) – [Chat Section] Add multiple channel lists details digital man |
---|
====== Chat Section ====== | ====== Chat Section ====== |
| |
This module (''[[dir:exec]]/[[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/exec/chat_sec.js|chat_sec.js]]'') displays the "Chat" [[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/text/menu/chat.asc|menu]]/prompt from the [[server:Terminal]] Server accepts/acts upon user input (hot keys) to perform chat-related functions. | This module (''[[dir:exec]]/[[https://gitlab.synchro.net/main/sbbs/-/blob/master/exec/chat_sec.js|chat_sec.js]]'') displays the "Chat" [[https://gitlab.synchro.net/main/sbbs/-/blob/master/text/menu/chat.msg|menu]]/prompt from the [[server:Terminal]] Server accepts/acts upon user input (hot keys) to perform chat-related functions. |
<file> | <file> |
┌───────────┐ | ┌───────────┐ |
</file> | </file> |
| |
The [[https://gitlab.synchro.net/sbbs/sbbs/-/blob/master/exec/chat_sec.js|default chat section module]] is ''[[dir:exec]]/chat_sec.js'' and supports the following configuration options in the ''[chat]'' section of the ''[[dir:ctrl]]/[[config:modopts.ini]]'' file: | ===== Configure ===== |
| |
| This module supports the following configuration options in the ''[chat]'' section of the ''[[dir:ctrl]]/[[config:modopts.ini]]'' file: |
| |
^ Option ^ Default ^ Description ^ | ^ Option ^ Default ^ Description ^ |
| irc_channel | #Synchronet | Comma-separated list of IRC Channels to auto-join | | | irc_channel | #Synchronet | Comma-separated list of IRC Channels to auto-join | |
| irc_seclevel | 90 | Security level required to change IRC server/channel parameters | | | irc_seclevel | 90 | Security level required to change IRC server/channel parameters | |
| |
| ==== Servers-specific Channel Lists ==== |
| |
| Do you have multiple IRC servers configured in ''modopts.ini'' and you want a different channel list per server? Just add more |
| keys to the ''modopts.ini [chat_sec]'' section of the form: |
| <server>=<channel_list> |
| |
| Where ''<server>'' is the IRC server's host name (e.g. ''irc.synchro.net'') |
| and ''<channel_list>'' is a comma-separated list of channels to override |
| the default list of channels (set with the ''irc_channel'' key). |
===== Install ===== | ===== Install ===== |
| |
This module should be installed in stock command shells by default (over-riding the hard-coded "Chat" menu logic). To install into additional command shells, replace the following line(s) in ''[[dir:exec]]/*.src'': | ==== SBBS v3.20 ==== |
| |
| In Synchronet v3.20, [[util:SCFG]]->System->Loadable Modules->Chat Section is set by default to "chat_sec" and will be automatically invoked with the [[custom:JavaScript]] ''bbs.chat_sec()'' method or the Baja ''chat_section'' function call. |
| |
| ==== SBBS v3.19 and earlier ==== |
| With older versions of Synchronet, this module should be installed in stock command shells by default (over-riding the hard-coded "Chat" menu logic). To install into additional command shells, replace the following line(s) in ''[[dir:exec]]/*.src'': |
chat_section | chat_section |
with: | with: |