i dont like doing this, but since i dont know i would like someone to ask to help me with this:

005 Wragg MAP KNOCK SAFELIST HCN MAXCHANNELS=15 MAXBANS=60 NICKLEN=30 TOPICLEN=307 KICKLEN=307 MAXTARGETS=20 AWAYLEN=307 :are supported by this server

005 Wragg WALLCHOPS WATCH=128 SILENCE=15 MODES=12 CHANTYPES=#

what should i do so i can store info from this into a variable

like if MAP is in raw 005 store
%map possible
%maxchannels 15
%nicklen 30
%watch 128
%massmodes 12
%chantype #

i know that this must be done with gettok or something, but i dunno how to script it... i already made little script that "tries" to extract simmiliar settings, but i does not work

well here it is if someone can fix it and add these things above in it:

raw 002:*:{
.write -cl1 $server $+ .txt
.write -l1 $server $+ .txt Server Info
.write -l2 $server $+ .txt $chr(160)
.write -l3 $server $+ .txt - Server is $6- of IRCD.
haltdef
}
raw 003:*:{
.write -l4 $server $+ .txt - $2-
.write -l5 $server $+ .txt $chr(160)
haltdef
}
raw 005:*:{
haltdef
.set %and $chr(38)
.set %hash $chr(35)
if (%hash isincs $2) {
.write -l6 $server $+ .txt Normal Channel Types (#) are supported by this server.
.write -l7 $server $+ .txt $chr(160) to join such channel type /join #channelname (or /j channelname).
.write -l10 $server $+ .txt $chr(160)

}
if (%hash $+ %and isincs $2) {
.write -l6 $server $+ .txt - Normal and Special Channel Types (# and &) are supported by this server.
.write -l7 $server $+ .txt $chr(160) to join such channels type:
.write -l8 $server $+ .txt $chr(160) Normal Channel: /join #channel (or /j channel).
.write -l9 $server $+ .txt $chr(160) Special Channel: /join &channel (or /j &channel).
.write -l10 $server $+ .txt $chr(160)
.unset %and
}
.set %cpx1 (ov)@+
.set %cpx2 (ohv)@%+
if (%cpx1 isincs $3) {
.write -l11 $server $+ .txt - Server supports Op and Voice (+o and +v) channel-oper modes.
.unset %cpx1
.unset %cpx2
}
if (%cpx2 isincs $3) {
.write -l11 $server $+ .txt - Server supports Op, Halfop and Voice (+o, +h and +v) channel-oper modes.
.unset %cpx1
.unset %cpx2
}
.write -l12 $server $+ .txt - Server supports $modespl mass modes per channel.
.set %cm.tmp $gettok($4,2-,44)
.write -l13 $server $+ .txt - Channel modes supported by this server: %cm.tmp
.unset %cm.tmp
.set %txt.tmp MAXBANS=
if (%txt.tmp isincs $11) {
.write -l14 $server $+ .txt $chr(160)
.set %mbl $11 | .set %mbl2 %mbl $+ =1 | .set %mbl.tmp $gettok(%mbl2,2-,61)
.write -l15 $server $+ .txt You can ban (+b) maximum %mbl.tmp users per channel.
}
}


thing is that half of features dont work and i dunno how to insert others nor to make this work smirk

Last edited by Wragg; 18/11/04 06:48 PM.