PtokaX forum

Development Section => Your Developing Problems => Topic started by: TecMaster on 13 June, 2004, 11:44:27

Title: PermBan.dat
Post by: TecMaster on 13 June, 2004, 11:44:27
Simple question ...

Is it possible to write in PermBan.dat when Ptokax is running?

If Yes, how?

Title:
Post by: tezlo on 13 June, 2004, 17:07:06
sure.. just like any other textfile
the problem is that whatever you write in it will get overwritten when you add bans manually, with a command or by a script
and if it doesn't, the ban only becomes active once you restart ptokaz
Title:
Post by: TecMaster on 13 June, 2004, 21:45:25
So it's pointless to write "ip|nick" of offline users in it?

The only way to solve the problem of banning specific IP addresses (or nick) of offline users is to use a script and check every user that connects?
Title:
Post by: NightLitch on 13 June, 2004, 23:02:25
use !banip or !nickban in hubsoft that solves the offline users... user don't need to be online to be nickbanned or ipbanned....

/NL
Title:
Post by: TecMaster on 14 June, 2004, 07:21:19
Thats the problem, I use + as prefix and not !
And then I guess (again) that the only way of banning offline users is by scripting?

And if ptokax by itself only uses a textfile to store all banned ip/nicks it should not be a big load if i implement my own "ban-subrutin" in a script?
Title:
Post by: ConejoDelMal on 14 June, 2004, 13:16:26
QuoteOriginally posted by TecMaster
Thats the problem, I use + as prefix and not !
And then I guess (again) that the only way of banning offline users is by scripting?
well, if you use + as a prefix then you just have to use +banip or +nickban  :D
QuoteAnd if ptokax by itself only uses a textfile to store all banned ip/nicks it should not be a big load if i implement my own "ban-subrutin" in a script?
?(  that i didnt understand
Title:
Post by: TecMaster on 14 June, 2004, 13:32:41
If I understand correctly, Ptokax only uses a textfile where banned user is stored. So by implementing my own ban function i my script, the extra CPU usage by doing that should not be big load on my CPU ...

More understandable now?

I wish that just by exchanging the prefix the banip and nickban will work ...
Title:
Post by: ConejoDelMal on 14 June, 2004, 14:03:14
? !banip                - Permanently ban IP address (if user is offline)
? !nickban                - Permanently ban from offline user

these are inbuild comands from Ptokax, so you have no need to make a script or implement any functions in your own, if your problem is that the prefix you have is a "+" ....then just use it....like:

+banip     &    +nickban

I am no expert....but that gotta work  ;)
Title:
Post by: TecMaster on 14 June, 2004, 14:12:26
No ... dont work ... the prefix is !, not +.
Title:
Post by: ConejoDelMal on 14 June, 2004, 14:20:10
now i'm confused......maybe it is just cause i spent a whole night awake....but:

check in the .txt of ptokax...the last line should be
"[System]
CmdPrefix=!"

if your prefix is + , then it is "CmdPrefix=+" .....and once we are talking about inbuild cmd's, it has to work with the prefix you have in this file. If it doesnt by any strange reason, then you should consider changing the prefix   :D
Title:
Post by: TecMaster on 14 June, 2004, 14:33:45
I dont have that line in my Prokax.ini file.
Tried to add it but it did'nt make any differance
Title:
Post by: ConejoDelMal on 14 June, 2004, 14:45:25
so that means that you cant use any Inbuild comands?

by the way.....try to use inbuild comands in Main...cause they dont work anywhere else  :P
Title:
Post by: TecMaster on 14 June, 2004, 15:00:35
We can use inbuilt commands but we have used + with our old hubbsoftware and most of out OP:s would like to continue to use + as a prefix.

Would still like to know if the only was to solve the "problem" is to script it ... by checking every user that connects ...
Title:
Post by: ConejoDelMal on 14 June, 2004, 15:31:40
so if I understood you right, you can use the command !banip   but you would prefer to use +banip   is that right???

we'll if that's the problem....I think you can script it, but i would suggest that your op's would use those commands with the prefix !   at least until the next official Ptokax version is released, cause then you will be able to change it as you wish (I think)  ;)
Title:
Post by: TecMaster on 14 June, 2004, 19:31:56
Yes, everyone can use !banip and !nickban  ;)

And No, we will not use any ! commands, right now I use the meny where you just rightclick and choose ipban or nickban.