attempt at fixing http://bugs.irssi.org/index.php?do=details&task_id=780