# 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){}
	}
}
