After my DSL connection was killed speed wise tonite I tracked down the problem to my DC hub. I used Sedulus's perl script and stimbot to export my existing users and imported them (flawlessly! Thanks Sed!) into DCH++. Then I've made a few slight config changes and changed my port forwarding on my router and now my hub (150 users ATM) is running on DCH++! I've been wanting self-reg but I guess as long as my existing users still have their info it'll be ok. Hopefully my internet speed will be better with DCH++ as my hub software.
I have a question though. When I change a script or the MOTD I can do a +reload or +refresh. When I change dchpp.xml or access.xml, can I reload those without restarting the whole hub?
moved hub to DCH++
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
+reload
is caught by LuaScript, and it will reload LuaScript.xml and the scripts in it
+refresh
is caught by OpCom, it reloads motd _from_ disk and writes access.xml _to_ disk.
dchpp.xml
can be changed while running (although not everything) with Executer.lua, but this file will not be saved to (not on +refresh and not on shutdown)
so, take care in setting dchpp.xml correctly before starting the hub
(if you want to get on sandos's hublist, use dcreg.mine.nu:2501)
a reg() function will be implemented in the next LuaScript version, and possibly OpCom can be changed so the +reg-minlevel will differ from the +unreg-minlevel
[edit:]
about the perl script, you had to make sure usernames and passwords didn't contain illegal characters. the following escapes those characters as well:note that there may still be problems if users use characters < chr(32), as dch++ does not accept those in usernames (and possibly passwords as well)
[edit: changed "convert" to "escape"]
is caught by LuaScript, and it will reload LuaScript.xml and the scripts in it
+refresh
is caught by OpCom, it reloads motd _from_ disk and writes access.xml _to_ disk.
dchpp.xml
can be changed while running (although not everything) with Executer.lua, but this file will not be saved to (not on +refresh and not on shutdown)
so, take care in setting dchpp.xml correctly before starting the hub
(if you want to get on sandos's hublist, use dcreg.mine.nu:2501)
a reg() function will be implemented in the next LuaScript version, and possibly OpCom can be changed so the +reg-minlevel will differ from the +unreg-minlevel
[edit:]
about the perl script, you had to make sure usernames and passwords didn't contain illegal characters. the following escapes those characters as well:
Code: Select all
while(<>){
/^\[([^\]]*)\]\[([^\]]*)\]\[([^\]]*)\]/ or die "choked on: $_";
$U=$1;$P=$2;$L=($3 eq "True")?2:0; # store extraced values
$U=~s/\$L\$/[/g;$U=~s/\$R\$/]/g; # unescape $L$ and $R$
$U=~s/&/&/g;$U=~s/</</g;$U=~s/>/>/g; # escape & and < and >
$P=~s/\$L\$/[/g;$P=~s/\$R\$/]/g; # unescape $L$ and $R$
$P=~s/&/&/g;$P=~s/"/"/g; # escape & and "
print "\t\t<User Password=\"$P\" Level=\"$L\">$U</User>\r\n";
}[edit: changed "convert" to "escape"]
Last edited by Sedulus on 2003-03-09 14:29, edited 1 time in total.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
yakko
- Posts: 258
- Joined: 2003-01-27 06:04
actually I used that second perl script in the thread, so it handled extended characters fine.
thanks for the info on the +reg stuff. It's much appreciated.
in the future can there be a way to reload dchpp.xml or edit the config via the hub? that's another thing about NMDCH that always bugged me. you couldn't change the settings while the hub was running.
thanks for the info on the +reg stuff. It's much appreciated.
in the future can there be a way to reload dchpp.xml or edit the config via the hub? that's another thing about NMDCH that always bugged me. you couldn't change the settings while the hub was running.
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
well.. yeah, as long as their usernames and passwords didn't contain <, >, ", &...yakko wrote:actually I used that second perl script in the thread, so it handled extended characters fine. :
I was trying to at least be able to reload access.xml from disk... which is not possible currently (if I did not miss something somewhere),yakko wrote:in the future can there be a way to reload dchpp.xml
but dchpp.xml is not that necessary.
most things in there don't have to be changed often,
2 minutes downtime is not really a big deal.
and it's good that it can't be saved, otherwise you'd lose the valuable comments in it.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
yakko
- Posts: 258
- Joined: 2003-01-27 06:04
Sedulus wrote:I was trying to at least be able to reload access.xml from disk... which is not possible currently (if I did not miss something somewhere),
but dchpp.xml is not that necessary.
most things in there don't have to be changed often,
2 minutes downtime is not really a big deal.
and it's good that it can't be saved, otherwise you'd lose the valuable comments in it.
I guess that's fine. you can do most things from the hub that you need to anyways. and for a .18 it's already a pretty good piece of software.
Who is online
Users browsing this forum: Google [Bot] and 0 guests