tam-o'-shantered

adj.

Reduced by drink to treating a woollen hat as formal authority and issuing instructions from beneath it.

Source: Wiktionary