You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kvirc/doc/scriptexamples/relay.kvs

34 lines
455 B

# Relay bot (unfinished for now :D)
# TODO : finish me!
alias (relay_start)
{
# Usage : relay_start <window1> <window2>
}
alias (relay_stop)
{
# Usage : relay_stop <window1> <window2>
}
event (OnChannelPrivmsg)
{
%target = %RelayTarget[$window];
if("%target" != "")
{
msg -w=%t $target <$0> $1-
}
}
alias (relay_uninstall)
{
timer -s (relay_uninstall_timer,0)
{
alias(relay_start){}
alias(relay_stop){}
alias(relay_uninstall){}
}
}