X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite-irssi.pl;h=f9d782837256dba30ff5cbd29e0be06c4e3f09a6;hp=4029c1cce0b4b315a199b580a18b3ccebc7de75a;hb=0c810b0d720f842f4a75872f3611e8a2ad7fa119;hpb=8d918b07ad100a4d7b96cf5df640cef0a8a0411d diff --git a/videosite-irssi.pl b/videosite-irssi.pl index 4029c1c..f9d7828 100644 --- a/videosite-irssi.pl +++ b/videosite-irssi.pl @@ -981,7 +981,7 @@ sub videosite_init { push(@INC, File::Spec->catfile(Irssi::get_irssi_dir(), 'scripts')); load 'libvideosite'; - unless (videosite_reset()) { + if (videosite_reset()) { signal_add_last("message public", sub { message_hook(@_) }); signal_add_last("message own_public", sub { message_hook($_[0], $_[1], undef, undef, $_[2]) }); signal_add_last("message private", sub { message_hooK($_[0], $_[1], $_[2], $_[3], $_[2]) });