<upload>
	type=ufs
	path=/tmp/
	# Reject dangerous files.
	# excludes=\.(exe|vbs|bat|com|cmd|htm|html|shtml|sht|sh|pl|ps|[0-9]|py|msi)$
	# includes=
	# duplicate_checking=yes
</upload>

# List of file servers
<fileservers>
	# Name of fileserver
	<default>
		# Is the fileserv active?
		active=true
		# Where should this fileserver listen?
		<where>
			# <network>[.<server>]="#chan[,#chan...]"
			# Don't forget to quote the channel list, else
			# the # will be interpreted as a comment
			undernet.local="#test,#blah,#google"
			#dalnet="#dalnet"
		</where>
			
		servers=any
		# Sharing details
		<share>
			# What type of file system?
			# ufs: Unix File System (default)
			type=ufs
			# Path to share.
			path=/home/zaf/src/ircfs2/
			# Files Are shared if they match include and
			# don't match excludes
			# Regex expression of what files to exclude
			# Default is exclude nothing
			excludes=\.(o|m4)$
			# Regex expression of what files to share.
			# Default is share any.
			includes=.*
		</share>
		# Trigger details
		<trigger>
			# Type of trigger. Can be a list of strings.
			# eg: private,channel
			# private: private messages
			# channel: channel messages
			# ctcp: ctcp messages
			type=private,channel,ctcp
			# What string to we look for. This string
			# should be the only thing on the line.
			match=!test
		</trigger>
	</default>
</fileservers>

<dcc>
	<send>
		# What port ranges do we listen on for sending files.
		port_range=6000-6010

		# How long do we wait for an ack before dropping the
		# DCC send?
		data_timeout=240

		# How long do we wait for the user to start receiving
		# the file?
		request_timeout=120
	</send>
	<recv>
		# How long do we wait for data before dropping the
		# DCC receive?
		data_timeout=240

		# How long do we wait for the user to start sending
		# the file?
		request_timeout=120
	</recv>
	<chat>
		# How long do we wait for the user to acknowledge
		# a DCC Chat request?
		request_timeout=120
	</chat>
</dcc>

# Server details
<server>
	# Nick names to try.
	nicks=user,lamer,me,you

	# Automatically try variations of each nick if we can't use
	# one of the list of nicks
	vary_nick=true

	# Default info line.
	info=IRCfs M3 PreAlpha

	# Username to give to the irc server
	username=ircfs

	# my_ip=<method>[:<params>]][,<method2>[:<params2>]]
	# How do we figure out our IP Address.
	#
	# Methods:
	# Hostname
	#	Call gethostname() then resolve that name.
	#	This *shouldn't* fail, but that depends on wether your
	#	system is very broken or not.
	# Hostname:<hostname>
	#	Resolve specified hostname.
	# Routing
	# 	Look at the routing table, and use the address
	#       of the interface that has the default route.
	#	Fails if there is no default route. Shouldn't ever fail
	#	otherwise
	# Server
	#	Use the servers idea of our address. This doesn't
	#	fail, so place this at the end of the list to try.
	# IP:<aaa.bbb.ccc.ddd>
	#	Use the specified address
	#	This never fails (unless you specify an invalid address)
	# Interface:<iface>
	#	Use the address of the specified interface.
	#	(an '*' at the end of the address means use the first
	#	interface found with the specified prefix that has a
	#	valid IP address (eg "ppp*", try ppp0, then ppp1, etc)
	#	This fails if no matching interface has a valid IP address
	# shell:<program>
	#	execute the specified program, expects the first line
	#	printed to stdout to contain the IP address to use,
	#	and expects the program to return 0. If returns anything
	#	else, uses another method
	#
	# Examples:
	#	my_ip=hostname:me.dyndns.org,interface:ppp*,server
	#       The above example tries to resolve me.dyndns.org, if that
	#	fails, then tries to use an address of a PPP interface,
	#	if none are found, uses the servers idea of our address.
	my_ip=hostname
	
	<undernet>
		nicks=undernet_nick,undie_nick
		<local>
			host=127.0.0.1
			#ports=6667,6668,6669
			ports=6667
		</local>
		<auckland>
			host=auckland.nz.undernet.org
			ports=6667
			nicks=usnick
		</auckland>
	</undernet>
	<dalnet>
		nick=dalnick
		<random>
			host=irc.dal.net
			ports=7000
		</random>
	</dalnet>
</server>
# Logging stuff.
<debug>
	# List of module names as groups.
	# Group contains:
	#    filter: filter what messages
	#         error: Show only error messages
	#         warning: Show only warning and above messages
	#         notice: Show only notice and above messages
	#         info: Show only info and above messages
	#         debug: Show only debug and above messages
	#         all: Show all messages
	#    output_type: Output to where?
	#    filename: What file to output to.

	# Do we display the src file location that generated the
	# message? (useful only in debugging)
	show_file_positions = true
	
	# Default output type
	output_type=console
	# Default filter
	filter=info

	# Per module configuration
	<stats>
		filter=all
	</stats>
	<server>
		filter=info
	</server>
	<socket>
		filter=notice
	</socket>
	<select>
		filter=warning
	</select>
	<module>
		filter=info
	</module>
	<debug>
		filter=info
	</debug>
</debug>

