CS: https://github.com/meebey/smuxi/blob/master/HACKING#L39