Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)
Moderator: Moderators
-
MICK69
- Posts: 9
- Joined: 2003-04-27 12:11
- Location: France
Post
by MICK69 » 2003-05-11 22:41
Hello everybody..
My first time publishing a post in the new forum
So I explain my problem and I apologise for my poor english coz' am french
I made a new script wich contains all in one but I've got a big problem with it, because it's along 68 Ko. So I don't edit it in the NMDC hub text box. But that's not my problem . Sometimes there is a blank line in the permban list which appears and everybody who wants to connect or reconnect have got is IP banned ( I know why , it's because it acts like a filter ) but I don't know how come this blank line !
If somebody had this problem can he help me ?
To resolve that I tried to specify that the user must be online to have his IP put in the Permban list, but no results.
I'm going to loose my nerves with this hub programm, and I tried Pkotax. Surely be the next one. But I would already like to know if I've made a mistake or if it's a bug in NMDCH.
-
ButterflySoul
- Posts: 210
- Joined: 2003-01-23 22:24
- Location: Nevada
Post
by ButterflySoul » 2003-05-11 23:20
It's not a problem with the nmdc hub, it's probably your script. If you try to reset or edit (or simply view) it from the hub script editor, you will truncate the file at 64K, so even if it's coded well, trying to restart it from the hub might cause unexpected results here and there.
If the problem doesn't come from the script being truncated, I guess you are simply missing a few checks on the command received by your script before it processes it. So another reason for blank entries might be if some of your OPs use the command with wrong parameters/no parameters at all (i.e. "ban" / "banip" without any address behind).
If you are spliting your command with Split(), check the upper bound of the resulting array, if you are using beforefirst/afterfirst/etc put on "On Error Resume Next" and check if the error code is 5 after the string went through the functions, etc.
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best
-
MICK69
- Posts: 9
- Joined: 2003-04-27 12:11
- Location: France
Post
by MICK69 » 2003-05-12 23:07
Thanks Son of Zeus for your quick response
During last day I saw what was the problem. It was in my filter for DC++.
In fact I added the IPs of the users wich have more than 20 hubs opened, and perhaps at one time if he quits quickly the hub it could put this blank line. Since this morning I've deleted this function and now it works well
Could not be a problem with my OPs cause I log all the bans.
See you later on the Forum.
Only people doing something make mistakes

-
ButterflySoul
- Posts: 210
- Joined: 2003-01-23 22:24
- Location: Nevada
Post
by ButterflySoul » 2003-05-13 07:08
In fact I added the IPs of the users wich have more than 20 hubs opened, and perhaps at one time if he quits quickly the hub it could put this blank line. Since this morning I've deleted this function and now it works well
If you add the user's IP to a variable a the begining of your $MyInfo analysis routine, you can use that variable to feed the ban table.
If you really go through a lot of code before entering the analysis routine, you can even go as far as making an extra check when assigning their IP to the variable (let's say sIP) :
Code: Select all
If colUsers.Online(cstr(<user's name>)) Then sIP = <user object>.IP()
That way, you can finish everything peacefully, eventually add nice entries to your logfile, and even add their IP to the perm ban list 5 minutes later if you like... As long as they were online at the time you assigned sIP's value, they shouldn't generate a blank line, even if they are offline by the time you actually add the IP (sIP's value) to the ban table =)
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best
Users browsing this forum: Google [Bot] and 0 guests