fix 4 chat & removed redundant lookup tables
Merge pull request #9 from petee-d/fix-for-self-opening-chat

fix 4 chat & removed redundant lookup tables