Skip to content
MSN

Pass storage system problems

A TG007 community discussion started by SpAzZ.

Discussion 4 posts
Page 1 of 1
Open
Topic #1077 · 4 published posts · 474 views

Im trying to make a pass storage system for my conn, but im running into sum problems. Heres what i got for my joins.

 elseif ($2 == join) {
   if ($nick == $mnick) { set %hostkey $gettok($readini(storage.ini, n, hostkey, $chan)),2,61) | set %ownerkey $gettok($readini(storage.ini, n, ownerkey, $chan)),2,61) | sockwrite -n chan* mode $me +h %hostkey | sockwrite -n chan* mode $me +h %ownerkey }

heres my prop coding

 if ($2 = PROP) {
   if ($4 == ownerkey) /writeini storage.ini ownerkey $3 $right($5-,-1) | echo $3 12Pass14:01Ownerkey14:01 $+ $right($gettok($1,1,33),-1) changes the ownerkey to $right($5-,-1)
   if ($4 == hostkey) /writeini storage.ini hostkey $3 $right($5-,-1) | echo $3 12Pass14:01Hostkey14:01 $+ $right($gettok($1,1,33),-1) changes the hostkey to $right($5-,-1)
   return
 }

heres what my ini file looks like

[storage]
[hostkey]
%#!!!!!!!!!!!!!!!!!'MSHS'!!!!!!!!!!!!!!!!!!=1Js8Tu8Bh4Mx7Gs8Jy5Ic7Vt
%#tezt=ô’äšä-xnextx ÷¢ë˜
%#-(-×-)-ΜΞΤλL-(-×-)-=š  ¬Æ¨Dynam|x`¼§©˜œ¯
[ownerkey]
%#tezt=ó~æ—÷-xnextxˆ÷®ö‰
%#!!!!!!!!!!!!!!!!!'MSHS'!!!!!!!!!!!!!!!!!!=612040r0ot491772
%#-(-×-)-ΜΞΤλL-(-×-)-=(Black)3p8j4b4(Ops)

it writes to the file fine as you can see, but it doesn't work right with the joins. anyone have any ideas?

thanks,

--SpAzZ--

elseif ($2 == join) {
  if ($nick == $mnick) { 
   var %h = $gh($3)
   var %o = $gq($3)
   sockwrite -n chan* mode $me +h %h 
   sockwrite -n chan* mode $me +h %o
}

 

if ($2 = PROP) {
  if ($4 == ownerkey) {
$gq($3,$right($5-,-1)).set
echo $3 12Pass14:01Ownerkey14:01 $+ $right($gettok($1,1,33),-1) changes the ownerkey to $right($5-,-1)
}
  if ($4 == hostkey) { 
$gh($3,$right($5-,-1)).set
echo $3 12Pass14:01Hostkey14:01 $+ $right($gettok($1,1,33),-1) changes the hostkey to $right($5-,-1)
  return
}

 

alias gq {
 if ($prop == set) { writeini -n storage.ini ownerkey $1 $2 }
 else { return $readini(storage.ini,ownerkey,$1) }
}
alias gh {
 if ($prop == set) { writeini -n storage.ini hostkey $1 $2 }
 else { return $readini(storage.ini,hostkey,$1) }
}

;--uses

ownerkey

get: $gq(chan)

set: $gq(chan,key).set

 

hostkey

get: $gh(chan)

set: $gh(chan,key).set

Edited Aug 2, 2004 3:40 PM by Cha0sRiderX

lol thanks chaos, but that didn't work, all that did is make it so i cudn't open the channel window tongue.gif.

 

well spazz, u wud better;

 

1-check how it was done in vincula, like $msn.ownerkey($chan),,etc.

2-set stored pass(s) in variavble(s) or hash table(s). these r alot faster as they r within the mirc exe itself.

on me:*:join:#:hop #