The accused violated the model code of conduct, in place for the November 20 state assembly polls, stated the FIR.