Added forgotten return which caused a crash

When addfriend was returning an error the plugin crashed because I
obviously forgot a return statement and was continuing with processing
while the ID was illegal.

Also integrated new addfriend error codes.