I can explain this glitch..
Basically, in the minigame in horrors, spies can pull out ANY primary pistol, equip the dead ringer, switch to ANY knife, and then remove the dead ringer. Instantly they'll be able to attack with whatever knife they're holding.
It works exactly vice versa for shooting with a primary.