; [ Original script - modified ]
;
on *:Connect:{
;
; Join multiple channels in a single JOIN command
;
join #chan1,#chan2
;
; These two mode commands have to be moved to either on JOIN or on OP because you will not even be in the channel(s)
; yet, much less opped. If you're not on and opped in #chan1, you can't set any modes for #chan1. (Commented out)
; See the script at the bottom of the post for a fuller description.
;
; mode #chan1 +nt
; mode #chan2 +nt
}
;
; When someone ops me on #MyChannel
;
on *:OP:#MyChannel: if (s !isin $chan($chan).mode) mode $chan +s
;
; When I join the channel first (creating the channel), mIRC doesn't know that you're opped in #MyChannel until after the JOIN
; is complete (which occurs AFTER on JOINs have all been parsed and processed). Thus, you need a timer (1 millisecond
; will do just fine) to check after the JOIN to see if you're opped or not (meaning you created the channel).
;
on me:*:JOIN:#MyChannel: .timer -m 1 1 _mode $chan +skl keyword 5
;
; _mode is only used inside this script (alias -l); it's for the timer's use.
;
alias -l _mode if ($me isop $1) mode $1 $2-