This was another script I found useful for getting back into channels where that pesky mode +k comes into play.
this will log most modes. if you are in a channel were +l increases you will know.
if mode +i is active you must be on the channels accesslist in order to gain access to the channel.
;Snippet made by Mutt- of the cyanide-x,deepspace,kingnet,swiftirc networks.
;Useful for getting back into a channel with +k active.
on *:mode:#:{
/window -Si @modetrack
/aline -si @modetrack mode for Channel $chan is $1- on $network }