'RAW PRIVMSG 'name' : You need 'linesinfile('xdcc:'Left(word(text,1),Length(word(text,1))-1)'list')' slots, only 'maxslots-checkslots()' slots are available'
END
END
ELSE DO
IF (maxslots-checkslots())>0 THEN DO
'echo Sending 'word(text,1)' to 'name'.'
'say /dcc send 'name' xdcc:'word(text,1)
END
ELSE DO
'RAW PRIVMSG 'name' : You need 1 slot, only 'maxslots-checkslots()' slots are available'
END
END
end
else 'echo Could not find 'sfile'.'
end
else 'echo Nick not specified.'
end
RETURN
flist:
do
if exists(ffile) then do
select
when name='' then amirccmd='echo'
when name='#' then amirccmd='say'
otherwise amirccmd='RAW PRIVMSG 'name' :'
end
call open(1,ffile,r)
cnt=0
do until eof(1)
cnt=cnt+1
text=readln(1)
if (cnt=1)&(~eof(1)) then amirccmd u'AmIRC XDCC:'u' Friends list'