home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
comm
/
mail
/
thor
/
thor.lha
/
rexx
/
PurgeEvents.thor
< prev
next >
Wrap
Text File
|
1994-08-06
|
754b
|
35 lines
/* PurgeEvents.thor · by Troels Walsted Hansen
** $VER: PurgeEvents.thor v1.1 (23.02.94)
**
** Remove all events at one BBS in THOR. Useful when testing
** event creating scripts. :)
*/
options results
if(substr(address(),1,4) ~= "THOR") then do
parse arg portname
if~(show(p, portname)) then do
if ~(show(p, "THOR.01")) then do
say "No THOR port found!"
exit
end
else portname = "THOR.01"
end
end
else portname = address()
address(portname)
REQUESTLIST BBSLIST
bbsname = result
if(rc ~= 0 | bbsname = "RESULT") then exit
REQUESTNOTIFY TEXT '"'||'Do you really want to delete all events at '||bbsname||?'"' BT '"_Yes|_No"'
if(result = 0) then exit
address command "thor:bin/ScriptServ "||'"'bbsname||'"'" PACKAGEDONE"
RESCAN
exit