A Toronto man who blogged about his relationship with an undercover police officer leading up to the G20 summit is in court on Wednesday, accused of breaking a publication ban.

Julian Ichim was arrested during the G20 summit in June 2010 and charged with counselling to commit indictable offences. Those charges were later dropped.

Ichim later filed a $4-million lawsuit against the Toronto Police Services Board, the provincial Crown and an undercover officer for alleged false imprisonment, assault and battery, misuse of public office and breaches of the Charter.

The lawsuit is ongoing.

Ichim claims an undercover police officer befriended him for a year and a half leading up to the summit. He wrote about the undercover officer and his G20 experience online.

The Ontario Provincial Police asked him to remove a post about the officer, but Ichim refused, and was charged with three counts of disobeying a court order.

Ichim, who has asked to be tried by judge and jury and will represent himself, appeared in court on Wednesday to set a date for the trial.

His next court appearance will be Nov. 16.