I'm sorry buddy. but what you've said is very debatable and in my opinion, way off the mark.
When the Soviets invaded Afghanistan, they were there to support the Afghan communists, who were not popular at the time.
They invaded a sovereign nation and removed all it's leadership, they committed many war crimes in a nation known for being unforgiving to invaders. We as Pakistanis were under threat too. The Red army at our doorstep and the Indians supported the Soviets and their newly backed Afghan regime, the communist DRA. The prolonged war that came later with Mujahideen fighters was inevitable our support and the support of the US just sped the process along. Now, what was the alternative do you think? Do we do the less moral thing and support the invaders? And the more dangerous option in the long run, since if we were to support the Soviets, when they leave which they were bound to, those elements that were fighting the Soviets would fight Pakistan.
Besides, like I said, back then, even more so then now, the border didn't exist.
Refugees flooded our borders and there was nothing we could do about it. Most of them came to Pakistan, since Iran at this time had it's own issues and political instability. I think we chose the right side. Any country in our situation would have done the same. Easy money and weapons? We received support from the US and allies but that wasn't the reason for our involvement, if you recall, during the early days we flew solo, we had tiny bits of money from the Americans, but we committed ourselves before they did.
Okay, so, last point:
The Soviet invasion and our involvement in my opinion is very unrelated to the war today.
There's lessons to be learnt from that episode, sure. But the game is different today, the problems we face have nothing to do with 30 years ago. I also completely disagree with the notion that we bought all this on ourselves.
We were doomed when this was began. The US was clumsy and bloodthirsty and invaded in such a way that we would suffer and that they would loose their own war.