HERES WHATS IN THE TXT FILE
*!*@Swift-345345.hfhd.fhsdd.net 5
*!*@Swift-B7332A99.res.nb.dhcp.sigecom.net 4
i want it to just return the host, and not the number after
HERES THE SCRIPT
on *:JOIN:#:{
if (on isin $read(service.txt,s,$chan)) {
echo -a $gettok($read($+($chan,.txt),w,$address($nick,2)),1,32)
if ($address($nick,2) isin $gettok($read($chan $+ .txt,w,$address($nick,2)*),1,32)) {
set %oplevel $read($chan $+ .txt,s,$address($nick,2))
if (%oplevel >= 10) {
mode $chan +oa $nick $nick
}
elseif (%oplevel >= 5) && (%oplevel < 10) {
mode $chan +o $nick
}
elseif (%oplevel = 4) {
mode $chan +h $nick
}
elseif (%oplevel = 3) {
mode $chan +v $nick
}
}
}
}
the problem is with the echo and the second if, everything else works