isOurBot¶
Vérifie si name ou characterId appartient à tes bots avant un échange. Un personnage inconnu est refusé.
Signature¶
global:isOurBot(name, characterId)
Retour¶
true si le nom ou l’identifiant est reconnu ; false sinon.
Exemple¶
if not global:isOurBot(exchange:partnerName(), exchange:partnerId()) then
exchange:cancel()
return
end