Gee...
...a "medication" that is (sometimes) available by doctor's prescription
...that carries the side effect of triggering or enhancing mental disorders such as paranoia, obsessive-compulsive disorder or generalized poor impulse control
...nope;
without more information, I just don't have enough to determine what medication "your friend" might have been
toking ...umm, I meant taking, yeah taking.