A knifeman stabbed two strangers after being told a pub would not take card payments.
Patrick Burns carried out the attacks at the Waverley Bar in Glasgow's Tollcross on November 19 last year.
Prosecutor Lindsey Dalziel said the 27-year-old had gone there alone having briefly been at another nearby pub.