Check to see if the sender is also the receiver of an item #24


  • New
  • Enhancment
Open
Assigned to dhedbor
  • spiralofhope created this issue Mar 16, 2015

    Created on behalf of silentwarrior and their comment Posted 5 October 2011.

    http://www.curse.com/addons/wow/bulkmail?comment=98

    Could you add a check to see if the sender is also the receiver of an item?

    I have several rules for differnt chars setup, and, if it happens to have 1 item that he is also the receiver, he will try to mail himself the item... bugs and crashes.

    A simple check for nickname would solve this.

    http://www.curse.com/addons/wow/bulkmail?comment=99

    I've been told this works:

    if dest ~= UnitName('player') and (rules[itemID] or rules[itype] and rules[itype][isubtype]) then canddest = dest end
    =>
    if dest ~= strlower(UnitName('player')) and (rules[itemID] or rules[itype] and rules[itype][isubtype]) then canddest = dest end
    
  • spiralofhope added the tags New Enhancment Mar 16, 2015
  • spiralofhope edited description Mar 16, 2015
  • spiralofhope posted a comment May 19, 2018

    As of today, this is still relevant.


To post a comment, please login or register a new account.