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--