diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-18 20:50:12 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-18 20:50:12 +0000 |
commit | fcb1374e40ebd2b58c1ebf957a76fa5416034431 (patch) | |
tree | 74be402eb1eeb1c4742e9c5955c8d8c4e7ed8d31 /scripts/mlock.pl | |
parent | ac6bfeba1f83a205e1516eb6166ed2d79c9b6a54 (diff) | |
download | irssi-fcb1374e40ebd2b58c1ebf957a76fa5416034431.zip |
fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@768 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'scripts/mlock.pl')
-rw-r--r-- | scripts/mlock.pl | 5 |
1 files changed, 3 insertions, 2 deletions
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 <channel> <mode> - for Irssi 0.7.29 and above +# /MLOCK <channel> <mode> - for Irssi 0.7.96 and above # # Locks the channel mode to <mode>, 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'}; |