TCL Code snippets

You can place these code snippets directly in your sbnc.tcl. Alternatively you can create a tcl file for it and load it in sbnc.tcl, there are plenty examples. Don't forget to run /sbnc tcl :rehash after making the changes.

Setting a default server for new users

internalbind usrcreate set_default_server;
proc set_default_server {user} { 
  setbncuser $user server "irc.quakenet.org"; 
  setbncuser $user port 6667;
}

Setting a default realname for new users

internalbind usrcreate set_default_realname;
proc set_default_realname {user} {
  setbncuser $user realname "Your realname"
}
 
en/1.1/scriptlets.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