From fcb1374e40ebd2b58c1ebf957a76fa5416034431 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 18 Oct 2000 20:50:12 +0000 Subject: fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@768 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- scripts/mlock.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/mlock.pl') diff --git a/scripts/mlock.pl b/scripts/mlock.pl index 82bea7b0..01d08b45 100644 --- a/scripts/mlock.pl +++ b/scripts/mlock.pl @@ -1,4 +1,4 @@ -# /MLOCK - for Irssi 0.7.29 and above +# /MLOCK - for Irssi 0.7.96 and above # # Locks the channel mode to , if someone else tries to change the mode # Irssi will automatically change it back. +k and +l are a bit special since @@ -6,6 +6,7 @@ # mode to "+ntlk", Irssi will allow all +k and +l (or -lk) mode changes. use Irssi; +use Irssi::Irc; sub cmd_mlock { my ($data, $server) = @_; @@ -26,7 +27,7 @@ sub mlock_check_mode { return if (!$keep_mode); # old channel mode - $oldmode = $channel->get_mode(); + $oldmode = $channel->values()->{'mode'}; $oldmode =~ s/^([^ ]*).*/\1/; $oldkey = $channel->values()->{'key'}; $oldlimit = $channel->values()->{'limit'}; -- cgit v1.2.3