############################################################################## ## iroffer 1.4.b03 config file ## ## lines starting with "#" or are blank are ignored ## ############################################################################## # Version of this file: # # $Id: sample.config,v 1.179 2008/08/08 20:41:10 dm Exp $ # ############################################################################## ## FILES ## ############################################################################## ############################################################################## ### - pid file - ### ### Writes the process id to this file on startup ### pidfile mybot.pid ############################################################################## ### - log file - ### ### Writes logging information to this file logstats will log statistical ### ### information logstats will also send stats to a dcc chat if one is ### ### active. logrotate can be none, daily, weekly, or monthly ### logfile mybot.log logstats yes logrotate weekly ############################################################################## ### - state file - ### ### temporary storage for iroffer state information across restarts ### statefile mybot.state ############################################################################## ### - old state file - ### ### Writes smaller iroffer statefile by default. Set this option to write ### ### a statefile that is compatible with old versions. ### ### WARNING!! You need this option for the PHP weblist iroffer-state.php ### ### version 2.10 and below. ### #old_statefile ############################################################################## ### - send state file - ### ### send statefile every hour via DCC to the specified nick ### #send_statefile XDCC|statistik ############################################################################## ### - send state file minute - ### ### send statefile every hour via when the minute matches ### #send_statefile_minute 0 ############################################################################## ### - xdcc listing file - ### ### if you want to export your xdcc list via a webserver, or other means ### ### define 'xdcclistfile' and iroffer will write the xdcc list to it when ### ### needed. ### ### If xdcclistfileraw is set the file will be written with the IRC ### ### control characters included (color, formatting, etc..). ### xdcclistfile mybot.txt #xdcclistfileraw ############################################################################## ### - xdcc listing group only - ### ### Export your xdcc list with group and main information only. ### ### Default output is all packs and no group information. ### #xdcclist_grouponly ############################################################################## ### - group seperator - ### ### printed between group name and group description. ### ### Default: space ### #group_seperator " " group_seperator " - " ############################################################################## ### - dos text files - ### ### Write xdcclistfile as DOS text format, with CRLF als line break. ### ### Default: no, on CYGWIN default: yes ### #dos_text_files yes #dos_text_files no ############################################################################## ### - send listfile - ### ### Packnumber of xdcclistfile, enables XDCC SEND LIST. ### ### Default: off ### #send_listfile 1 ############################################################################## ### - xdcc xml file - ### ### if you want to export your packlist in XML define xdccxmlfile. ### #xdccxmlfile mybot.xml ############################################################################## ### - xdcc list by privmsg - ### ### send the result of XDCC LIST by privmsg instead of notice. ### ### Default: notice ### #xdcclist_by_privmsg ############################################################################## ### - xdcc remove file - ### ### export stats on removed packs for better statistics. ### #xdccremovefile mybot.removed.xdcc ############################################################################## ### - admin job file - ### ### when defined, read this file for commands and execute them. ### ### ouput will be written in .done ### #admin_job_file mybot.job ############################################################################## ### - http port - ### ### Port for the build-in webserver. ### ### Default: 0 = disabled. ### #http_port 8000 ############################################################################## ### - http vhost - ### ### List of up to 2 local IP addresses for the Webserver to run on. ### ### Use "::" or "0.0.0.0" to allow any IP address. ### ### Use "::1" or "127.0.0.1" to limit access to localhost only. ### ### Default: disabled. ### http_vhost :: http_vhost 0.0.0.0 ############################################################################## ### - http admin - ### ### Defines admin login for the build-in webserver. ### ### Default: disabled. ### #http_admin superuser ############################################################################## ### - http allow - ### ### Defines ip masks, which are allowed to access the server. ### ### Multiple ip masks can be specified ### ### Default: all. ### #http_allow 127.0.0.1 #http_allow 192.168.1.0/24 ############################################################################## ### - http deny - ### ### Defines ip masks, that should not access the server. ### ### Multiple ip masks can be specified ### ### Default: none. ### #http_deny 172.16.0.0/16 ############################################################################## ### - http dir - ### ### Defines directory for extra files handled out by the webserver. ### ### For example: robots.txt favicon.ico ### ### Default: disabled. ### #http_dir htdocs ############################################################################## ### - http date - ### ### Define output from of dates on the webpage. ### ### Default: %Y-%m-%d %H:%M ### #http_date %Y-%m-%d %H:%M ############################################################################## ### - http search - ### ### Enables search form in HTML page. ### ### Default: disabled. ### http_search ############################################################################## ### - weblist info - ### ### Show additional information in the HTML page. ### weblist_info uptime "Uptime" #weblist_info running "Total Uptime" #weblist_info minspeed "Min speed" #weblist_info maxspeed "Max speed" weblist_info cap "Max bandwidth" #weblist_info record "Record bandwidth" #weblist_info send "Record download" weblist_info daily "Traffic today" weblist_info weekly "Traffic this week" weblist_info monthly "Traffic this month" ############################################################################## ### - mime type - ### ### Define additional mime types for the HTML pages. ### #mime_type torrent application/x-bittorrent ############################################################################## ### - telnet port - ### ### Port for the build-in Telnet server. ### ### Default: 0 = disabled. ### #telnet_port 2323 ############################################################################## ### - telnet vhost - ### ### List of up to 2 local IP addresses for the Telnet server to run on. ### ### Use "::" or "0.0.0.0" to allow any IP address. ### ### Use "::1" or "127.0.0.1" to limit access to localhost only. ### ### Default: disabled. ### telnet_vhost ::1 telnet_vhost 127.0.0.1 ############################################################################## ## IRC ## ############################################################################## ############################################################################## ### - network name - ### ### start a new set of servers/channels for a different irc network. ### #network irc.efnet.net ############################################################################## ### - connection method - ### ### How should iroffer connect to the irc server. Choices are: ### ### direct - connect directly to the irc server ### ### ssl - connect to the irc server via SSL. ### ### Make sure to connect to ssl compatible ### ### port of your ircserver. ### ### bnc ### ### - connect to the irc server through a bnc ### ### relay at : using ### ### is optional ### ### wingate - connect to the irc server through a ### ### wingate relay at : ### ### custom - connect to the irc server through a ### ### custom set of commands, see proxyinfo ### ### below for more information ### ### most people will want to use the direct ### #connectionmethod direct ############################################################################## ### - custom connection info - ### ### if you use connectionmethod of custom you can place any number of ### ### custom lines for use with your proxy/gateway/redirector. Place "$s" ### ### and "$p" where the server and port should be placed in your text ### #proxyinfo connect $s:$p #proxyinfo blah blah ############################################################################## ### - onjoin information - ### ### you can use server_join_raw to send raw IRC commands to the server ### ### when connected (sent after NICK, USER, before MODE ) ### ### ### ### you can use server_connected_raw to send raw IRC commands to the ### ### server when connected (sent after MODE, before JOIN ) ### ### ### ### you can use channel_join_raw to send raw IRC commands to the ### ### server when you join a channel (multiple instances can be configured ### ### if needed) ### ### ### ### multiple instances of all 3 can be configured if needed ### #server_join_raw #server_connected_raw #channel_join_raw ############################################################################## ### - virtual hosts - ### ### If the computer you want to run iroffer on has multiple local IP ### ### addresses, you can run iroffer on any of those IP addresses. ### ### To automatically choose a local IP address leave undefined. ### ### This setting can be global or per network. ### ### NOTE: You must use the IP address in x.x.x.x format not a DNS name. ### #local_vhost 123.456.789.123 ############################################################################## ### - manual dcc ip translation - ### ### if you are behind a NAT (Network Address Translation) device which ### ### _does_ _not_ intercept and translate dcc commands but _does_ do port ### ### forwarding place the ip address of the NAT below if unsure, leave ### ### commented ### ### NOTE: You must use the IP address in x.x.x.x format not a DNS name. ### #usenatip 1.2.3.4 ############################################################################## ### - automatic dcc ip translation - ### ### Get my own IP from the ircserver, and uses this as value for usenatip. ### ### Set usenatip to a default value (0.0.0.0) when using this option. ### #getipfromserver ############################################################################## ### - get ip from network - ### ### Get my own IP for the current Network from a different network. ### ### You need this when the given network does not return your IP. ### #getip_network 1 ############################################################################## ### - nickserv - ### ### If you would like to register with nickserv add settings here. ### ### This setting can be global or per network. ### #nickserv_pass mypass ############################################################################## ### - server information - ### ### List server/ports in the form "server irc.domain.com 6667". Port is ### ### optional (default 6667). Server password should be listed 3rd if ### ### needed (port must be specified if using a password). ### ### Multiple servers can be specified ### #server irc.efnet.net #server irc.efnet.net 6667 #server irc.efnet.net 6667 server-password ############################################################################## ### - channels (up to 50) - ### ### channel format: ### ### "channel [-plist