did -a $dname 1 %read $iif(%read_a != %read,%read_a)
if (%read == $_icq.a) { did -c $dname 1 $did($dname,1).lines }
dec %c
}
}
on *:dialog:_icq.am:sclick:2,3,4,6,8,10:{
if ($did == 2) { _icq.dlg_addaccount }
if ($did == 3) {
if ($sock(smarticq*,0)) {
var %d = $input(You must disconnect from ICQ before you can register a new account.,4)
return
}
_icq.dlg_registration
}
if ($did == 4) {
if (!$gettok($did($dname,1,$did($dname,1).sel).text,1,32)) { return }
if ($input(Are you sure you want $+ $crlf $+ to remove account $gettok($did($dname,1,$did($dname,1).sel).text,1,32) $+ ? $+ $crlf $+ $crlf $+ You can not undo this!,8,- SmartICQ)) {
var %d = $findfile($+(",$_icq.dir,$gettok($did($dname,1,$did($dname,1).sel).text,1,32),"),*.*,0,.remove $+(",$1-,") )
var %d = $findfile($+(",$_icq.dir,$+($gettok($did($dname,1,$did($dname,1).sel).text,1,32),"),\log\),*.*,0,.remove $+(",$1-,") )
hadd smarticq H $calc(282 + (17 * $hget(smarticq,XS_rows)))
hadd smarticq group $iif($readini($+(",$_icq.dir,dat\smarticq.ini"),misc,group) != $null,$ifmatch,1)
hadd smarticq state normal
hadd smarticq status $iif($did == 6,online,offline)
hadd smarticq scroll 1
hadd smarticq sel 2
hadd smarticq seqnum 0
hadd smarticq click.dx -
hadd smarticq click.dy -
hadd smarticq msg.away $iif($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,msg.away),$ifmatch,User is currenly Away $+ $crlf $+ You can leave him/her a message)
hadd smarticq msg.na $iif($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,msg.na),$ifmatch,User is currenly N/A $+ $crlf $+ You can leave him/her a message)
hadd smarticq msg.occupied $iif($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,msg.occupied),$ifmatch,User is currenly Occupied $+ $crlf $+ You can leave him/her a message)
hadd smarticq msg.dnd $iif($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,msg.dnd),$ifmatch,User is currenly DND $+ $crlf $+ You can leave him/her a message)
_icq.dll clearuinlist
var %c = $ini($+(",$_icq.dir,$_icq.a,\uin.ini"),contacts,0), %read, %n, %list, %group = $hget(smarticq,group)
if ($did == 160) { did -c $dname 193 5 | dialog -t $dname SmartICQ - Preferences [Away System] }
if ($did == 179) { did -c $dname 193 6 | dialog -t $dname SmartICQ - Preferences [Message Windows] }
if ($did == 212) { did -c $dname 193 7 | dialog -t $dname SmartICQ - Preferences [Plug-In Manager] }
}
on *:dialog:_icq.settings:sclick:49,84,85:{
; deleting account
if ($did == 49) {
if ($input(DELETE ACCOUNT?,256,SmartICQ - WARNING)) && ($input(DELETE ACCOUNT? $+ $crlf $+ ACCOUNT WILL BE DELETED FROM ICQ - YOU CAN NOT UNDO THIS!,512,SmartICQ - WARNING)) {
var %passwd = $readini($+(",$_icq.dir,$_icq.a,\settings.ini"),account,passwd)