channelsort.tcl

Purpose & Features

channelsort.tcl gives the user control over the order in which the channels are joined upon connect to sBNC. The script works with 1.2 only.

Installation

Download the script (channelsort.tcl) and place it in your sbnc/scripts/ folder, then add source “scripts/channelsort.tcl” to your sbnc.tcl file and run /sbnc tcl rehash.

Usage

All settings can be set via /sbnc set <setting> and unset via /sbnc unset <setting>. To disable the script simply unset the channelsort setting.
Settings added by this script are:

channelsort

This setting has three possible values:

  1. alpha - the channels will be joined in alphabetical order
  2. cts - cts stands for “client timestamp”, channels will be joined in the order that the user used when he joined the channels for the first time. Please note that this order will be messed up once sBNC reconnects to the IRC server, this is a limitation of sBNC itself, not of the script.
  3. custom - channels will be joined in the order specified in the channellist setting (see below)

channellist

The channellist setting defines the order in which the channels are joined when channelsort is set to custom. Channels are separated by spaces e.g.: /sbnc set channellist #channel1 #channel2 #channel3. Channels not present in the list will be joined at the end, the order between non-listed channels themselves is random.

Comments, Bugs and Suggestions

Feel free to leave comments, questions, bug reports and suggestions in this thread or contact El_Rico in #sbnc on irc.quakenet.org (the “do not query staff” rule applies regardless).

 
en/1.2/userscripts/channelsort.tcl.txt · Last modified: 2011/08/27 15:15 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki