Hi!
Is it possible when you create scripts that you could have a textfile where you
add the profiles you want to have, then the scripts call that textfile.
A little some profiles.xml under CFG folder.
Thanks in advance
Oki, I understand :(
LoL
I understand that no one had a clue about what I was asking, or?
Quote from: BrotherBear on 29 August, 2006, 09:27:48
LoL
I understand that no one had a clue about what I was asking, or?
nope please make your request, question (http://www.catb.org/~esr/faqs/smart-questions.html) a bit more structured and more detailed,...
is that your after a script that you can add your own profiles to hub other then master/op/vip ect
so u just type !addprofile superop
and it saves in the profile.xml
am i on the right lines ?
Sorry for my bad English and not understandable questions.
I vill try again :)
I wonder if you could make it easier to add profiles in all the scripts you use?
For example, the scripts use the Profiles.xml from the CFG folder.?
One place to add your profiles.
I have added 2 extra profiles in the Profiles.xml and it was many places
that I had to add those to get it to work.
I know that you scripters put alot of hard work on scripts for us and I thank you all
for this.
I hope this clears things up :)
Cheers
Quote from: (uk)jay on 29 August, 2006, 13:44:09
is that your after a script that you can add your own profiles to hub other then master/op/vip ect
so u just type !addprofile superop
and it saves in the profile.xml
am i on the right lines ?
Something like that, but I want it to spread to the scripts too, does it do that?
I know what he wants.. he wants all scripts to read from profile.xml, as it is now some scripts you have to manually edit to include any nonstandard profile.
Basically its not a script he is after (as I understand it) but more a question/hope that you scripters can agree on reading the profiles from profile.xml for any script you create and that way make them dynamic without manual editing
The main problem i see with this, is that there is no "reload profiles" option. So the hub has to be closed to adjust the profiles. Same goes with ClientTags.xml, which i see much more use in adjusting while the hub is running.
Quote from: Anna on 29 August, 2006, 15:23:18
I know what he wants.. he wants all scripts to read from profile.xml, as it is now some scripts you have to manually edit to include any nonstandard profile.
Basically its not a script he is after (as I understand it) but more a question/hope that you scripters can agree on reading the profiles from profile.xml for any script you create and that way make them dynamic without manual editing
Yess, Anna :)
Thats exactly what I mean.
Hmm, youre right about that it is not a script, sorry :(
Thanks Anna :)
Quote from: Pothead on 29 August, 2006, 15:26:50
The main problem i see with this, is that there is no "reload profiles" option. So the hub has to be closed to adjust the profiles. Same goes with ClientTags.xml, which i see much more use in adjusting while the hub is running.
That is not a problem from my side, it is not so often you add a profile.
I would like the command !addprofile
QuoteQuote from: (uk)jay on Today at 01:44:09 pm
is that your after a script that you can add your own profiles to hub other then master/op/vip ect
so u just type !addprofile superop
and it saves in the profile.xml
am i on the right lines ?
Could i please have the command !addprofile ?
Quote from: Mutor on 29 August, 2006, 23:19:38
You could pull profiles from the hub with either..
GetProfileIdx(ProfileName) - Return ProfileNumber or -1 failed
GetProfileName(ProfileNumber) - Return ProfileName or nil for failed
The reason you'll see this in many script is to allow [by profile] certain
feature of the script. What might be easier is to use an editor with a
Search & Replace In Files One of my editors [PsPad] has this feature.
feature. To be used with caution, but you could easily update all script
to include your new profiles.
Yes youre right.
I use NotePad++ to change your script, it works pretty good,
but I always forget someplace to change or add or even make
a mistake.
Thank you all anyway :)