IF success=5 THEN CALL Cecho('[!filelist] - 'inverse'No files in list!'inverse)
RETURN
File_Send:
nick=WORD(aother,2)
uin=NickToUIN(nick)
therest=SUBWORD(aother,3)
ADDRESS STRICQ.1
IF therest="" THEN FILEDIRECT 'UIN='uin
ELSE FILEDIRECT 'UIN='uin 'DESC="'therest'"'
success=rc
IF success=0 THEN CALL Cecho('[!send -> 'nick'] - Everything went fine.')
IF success=5 THEN CALL Cecho('[!send -> 'nick'] - 'inverse'Either the UIN keyword was not given or there are no files listed in the FileDirect Request window.'inverse)
IF success=10 THEN CALL Cecho('[!send -> 'nick'] - 'inverse'The UIN was not found in the contact list.'inverse)
RETURN
Status:
therest=SUBWORD(aother,2)
ADDRESS STRICQ.1
IF therest="" THEN DO
STATUS GET
CALL Cecho('[!status] - Your status is: 'ICQRC)
END
ELSE DO
STATUS 'SET="'therest'"'
success=rc
IF success=0 THEN CALL Cecho('[!status] - Everything went fine.')
IF success=5 THEN CALL Cecho('[!status] - 'inverse'SET did not recognize the status passed to it.'inverse)
END
RETURN
UserInfo:
nik=WORD(aother,2)
uinn=NickToUIN(nik)
therest=SUBWORD(aother,3)
ADDRESS STRICQ.1
GETCONTACT 'UIN='uinn
success=rc
IF success=0 THEN DO
CALL Cecho('Userinfo of contact :'bold' 'nik)
IF UPPER(therest)="UID" | therest="" THEN CALL Cecho(bold'UID 'bold': 'ICQRC.UIN)
IF UPPER(therest)="NICK" | therest="" THEN CALL Cecho(bold'Nick 'bold': 'ICQRC.NICK)
IF UPPER(therest)="FIRST NAME" | therest="" THEN CALL Cecho(bold'First name 'bold': 'ICQRC.FIRST)
IF UPPER(therest)="LAST NAME" | therest="" THEN CALL Cecho(bold'Last name 'bold': 'ICQRC.LAST)
IF UPPER(therest)="E-MAIL" | therest="" THEN CALL Cecho(bold'E-Mail 'bold': 'ICQRC.EMAIL)
IF UPPER(therest)="E-MAIL SECONDARY" | therest="" THEN CALL Cecho(bold'E-Mail Sec. 'bold': 'ICQRC.EMAIL_SECONDARY)
IF UPPER(therest)="E-MAIL OLD" | therest="" THEN CALL Cecho(bold'E-Mail Old 'bold': 'ICQRC.EMAIL_OLD)
IF UPPER(therest)="CITY" | therest="" THEN CALL Cecho(bold'City 'bold': 'ICQRC.CITY)
IF UPPER(therest)="STATE" | therest="" THEN CALL Cecho(bold'State 'bold': 'ICQRC.STATE)
IF UPPER(therest)="COUNTRY" | therest="" THEN CALL Cecho(bold'Country 'bold': 'ICQRC.COUNTRY)
IF UPPER(therest)="TELEPHONE" | therest="" THEN CALL Cecho(bold'Telephone 'bold': 'ICQRC.PHONE)
IF UPPER(therest)="FAX" | therest="" THEN CALL Cecho(bold'Fax 'bold': 'ICQRC.FAX)
IF UPPER(therest)="CELLULAR" | therest="" THEN CALL Cecho(bold'Cellular 'bold': 'ICQRC.CELLULAR)
IF UPPER(therest)="HOMEPAGE" | therest="" THEN CALL Cecho(bold'Homepage 'bold': 'ICQRC.HOMEPAGE)
IF UPPER(therest)="ABOUT" | therest="" THEN CALL Cecho(bold'About 'bold': 'ICQRC.ABOUT)
IF UPPER(therest)="AGE" | therest="" THEN CALL Cecho(bold'Age 'bold': 'ICQRC.AGE)
IF UPPER(therest)="SEX" | therest="" THEN CALL Cecho(bold'Sex 'bold': 'ICQRC.SEX)
IF UPPER(therest)="LOCAL COMMENT" | therest="" THEN CALL Cecho(bold'Local comment'bold': 'ICQRC.COMMENT)
IF UPPER(therest)="IP ADDRESS" | therest="" THEN CALL Cecho(bold'IP Address 'bold': 'ICQRC.IP)
IF UPPER(therest)="UNREAD MSGS" | therest="" THEN CALL Cecho(bold'Unread msgs 'bold': 'ICQRC.NEWMSGS)
IF UPPER(therest)="STATUS" | therest="" THEN CALL Cecho(bold'Status 'bold': 'ICQRC.STATUS)
IF UPPER(therest)="LAST ONLINE" | therest="" THEN CALL Cecho(bold'Last Online 'bold': 'ICQRC.LAST_ONLINE)
IF UPPER(therest)="MESSAGE TO" | therest="" THEN CALL Cecho(bold'Message To 'bold': 'ICQRC.MESSAGE_TO)
IF UPPER(therest)="MESSAGE FROM" | therest="" THEN CALL Cecho(bold'Message From 'bold': 'ICQRC.MESSAGE_FROM)
END
IF success=5 THEN CALL Cecho('[!uinfo] - The UIN was not found in the contact list, the ENTRY was out of range, or there is no SELECTED entry.')
IF ICQRC.STATUS="Free For Chat"|ICQRC.STATUS="Invisible" THEN colcode=color"9"
IF ICQRC.STATUS="Occupied"|ICQRC.STATUS="Away"|ICQRC.STATUS="DND"|ICQRC.STATUS="Not Available"|ICQRC.STATUS="Offline" THEN colcode=color"4"
printperson=0
IF therest="" THEN printperson=1
IF UPPER(therest)="ONLINE"&(UPPER(ICQRC.STATUS)="INVISIBLE"|UPPER(ICQRC.STATUS)="FREE FOR CHAT") THEN printperson=1
IF UPPER(therest)="OFFLINE"&(UPPER(ICQRC.STATUS)="AWAY"|UPPER(ICQRC.STATUS)="DND"|UPPER(ICQRC.STATUS)="OCCUPIED"|UPPER(ICQRC.STATUS)="NOT AVAILABLE") THEN printperson=1
IF UPPER(therest)=UPPER(ICQRC.STATUS) THEN printperson=1
IF printperson=1 THEN CALL Cecho(colcode' 'LEFT(uin_,13)''LEFT(nick_,22)''LEFT(ICQRC.STATUS,14)''ICQRC.LAST_ONLINE)