/hop coding in mircscripts
alias hop {
part #
join #
set %hop #
enable #hop
}
#hop off
on *:part:%hop: {
if ( $nick == $me ) halt
; If halt could prevent the channel window closing, which would be sooo 1337
}
on *:join:%hop: {
unset %hop
disable #hop
}
#hop end
and server traffic & commands
/hop
#hop enabled
-> irc.server.com PART #chan
-> irc.server.com JOIN #chan
/hop
#Hop enabled
-> irc.server.com PART #chan
-> irc.server.com JOIN #chan
<- :you!~ident@host.com PART #chan
window closing halted
<- :you!~ident@host.com JOIN :#chan
#hop disabled
<- :you!~ident@host.com PART #chan
Window closing not halted, because #hop is disabled
<- :you!~ident@host.com JOIN :#chan
Opens new window...