temporary fix to prevent m_addfriend from segfaulting
Merge pull request #334 from lukechampine/master

temporary fix to prevent m_addfriend from segfaulting