Fix the deprecation warnings

http://bugs.irssi.org/index.php?do=details&task_id=802
IRSSI: Add dispatch