Hop when channel empty - 07/01/03 09:32 AM
on *:part:#:{
if ($nick(#,0) = 2) && ($nick != $me) && ($me !isop $chan) {
set %rejoin.topic $chan($chan).topic
hop -cn #
mode # +nt
topic $chan %rejoin.topic
unset %rejoin.topic
}
}
That worked for one time, but now it doesn't work when the last person other than me got disconnected due to ping timeout and the channel did not have any topic.
if ($nick(#,0) = 2) && ($nick != $me) && ($me !isop $chan) {
set %rejoin.topic $chan($chan).topic
hop -cn #
mode # +nt
topic $chan %rejoin.topic
unset %rejoin.topic
}
}
That worked for one time, but now it doesn't work when the last person other than me got disconnected due to ping timeout and the channel did not have any topic.