use strict;
use warnings;
-our $VERSION = '1.10'; # a643fc45f8a0037
+our $VERSION = '1.11'; # 28b8dcf69e0355e
our %IRSSI = (
authors => 'Nei',
contact => 'Nei @ anti@conference.jabber.teamidiot.de',
{ my %killBar;
sub get_old_status {
my ($textDest, $cont, $cont_stripped) = @_;
- if ($textDest->{level} == 524288 and $textDest->{target} eq '' and !defined $textDest->{server}) {
+ if ($textDest->{level} == MSGLEVEL_CLIENTCRAP and $textDest->{target} eq '' and !defined $textDest->{server}) {
my $name = quotemeta(set '');
if ($cont_stripped =~ m/^$name(\d+)\s/) { $killBar{$1} = 1; }
Irssi::signal_stop;
sub get_keymap {
my ($textDest, undef, $cont_stripped) = @_;
- if ($textDest->{level} == 524288 and $textDest->{target} eq '' and !defined $textDest->{server}) {
+ if ($textDest->{level} == MSGLEVEL_CLIENTCRAP and $textDest->{target} eq '' and !defined $textDest->{server}) {
my $one_meta_or_ctrl_key = qr/((?:meta-)*?)(?:(meta-|\^)(\S)|(\w+))/;
$cont_stripped = as_uni($cont_stripped);
if ($cont_stripped =~ m/((?:$one_meta_or_ctrl_key-)*$one_meta_or_ctrl_key)\s+(.*)$/) {
return unless defined $^S;
return if $BLOCK_ALL;
return unless $print_text_activity;
- return if $_[0]->{level} == 262144 and $_[0]->{target} eq ''
+ return if $_[0]->{level} == MSGLEVEL_CLIENTNOTICE and $_[0]->{target} eq ''
and !defined($_[0]->{server});
&wl_changed;
}
# Changelog
# =========
+# 1.11
+# - fix compat with Irssi 1.4
+#
# 1.10
# - add /set awl_custom_key_re, to display custom keys in the $Q
# expando. requested by madduck