]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - conf/inspircd.conf.example
Fix for bug #679 reported by Namegduf, based on suggestion for fix by dz, thanks!
[user/henk/code/inspircd.git] / conf / inspircd.conf.example
1 ########################################################################
2 #                                                                      #
3 #               ___                ___ ____   ____    _                #
4 #              |_ _|_ __  ___ _ __|_ _|  _ \ / ___|__| |               #
5 #               | || '_ \/ __| '_ \| || |_) | |   / _` |               #
6 #               | || | | \__ \ |_) | ||  _ <| |__| (_| |               #
7 #              |___|_| |_|___/ .__/___|_| \_\\____\__,_|               #
8 #                            |_|                                       #
9 #      ____             __ _                       _   _               #
10 #     / ___|___  _ __  / _(_) __ _ _   _ _ __ __ _| |_(_) ___  _ __    #
11 #    | |   / _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \   #
12 #    | |__| (_) | | | |  _| | (_| | |_| | | | (_| | |_| | (_) | | | |  #
13 #     \____\___/|_| |_|_| |_|\__, |\__,_|_|  \__,_|\__|_|\___/|_| |_|  #
14 #                            |___/                                     #
15 #                                                                      #
16 ##################################||####################################
17                                  #||#                                   
18 ##################################||####################################
19 #                                                                      #
20 #         This is an example of the config file for InspIRCd.          #
21 #             Change the options to suit your network                  #
22 #                                                                      #
23 #     $Id$
24 #                                                                      #
25 #    ____                _   _____ _     _       ____  _ _   _         #
26 #   |  _ \ ___  __ _  __| | |_   _| |__ (_)___  | __ )(_) |_| |        #
27 #   | |_) / _ \/ _` |/ _` |   | | | '_ \| / __| |  _ \| | __| |        #
28 #   |  _ <  __/ (_| | (_| |   | | | | | | \__ \ | |_) | | |_|_|        #
29 #   |_| \_\___|\__,_|\__,_|   |_| |_| |_|_|___/ |____/|_|\__(_)        #
30 #                                                                      #
31 #   Lines prefixed with READ THIS BIT, as shown above, are IMPORTANT   #
32 #   lines, and you REALLY SHOULD READ THEM. Yes, THIS MEANS YOU. Even  #
33 #   if you've configured InspIRCd before, these probably indicate      #
34 #   something new or different to this version and you SHOULD READ IT. #
35 #                                                                      #
36 ########################################################################
37 #                                                                      #
38 #         Unalphabeticalise the modules list at your own risk          #
39 #                                                                      #
40 ########################################################################
41
42 #-#-#-#-#-#-#-#-#-#  INCLUDE CONFIGURATION  #-#-#-#-#-#-#-#-#-#-#-#-#-#
43 #                                                                     #
44 # This optional tag allows you to include another config file         #
45 # allowing you to keep your configuration tidy. The configuration     #
46 # file you include will be treated as part of the configuration file  #
47 # which includes it, in simple terms the inclusion is transparent.    #
48 #                                                                     #
49 # All paths to config files are relative to the directory of the main #
50 # config file inspircd.conf, unless the filename starts with a forward#
51 # slash (/) in which case it is treated as an absolute path.          #
52 #                                                                     #
53 # You may also include an executable file, in which case if you do so #
54 # the output of the executable on the standard output will be added   #
55 # to your config at the point of the include tag.                     #
56 #                                                                     #
57 # Syntax is as follows:                                               #
58 #<include file="file.conf">                                           #
59 #<include executable="/path/to/executable parameters">                #
60 #                                                                     #
61 # Executable Include Example:                                         #
62 #<include executable="/usr/bin/wget -q -O - http://mynet.net/inspircd.conf">
63 #                                                                     #
64
65
66 #-#-#-#-#-#-#-#-#-#-#-#-  SERVER DESCRIPTION  -#-#-#-#-#-#-#-#-#-#-#-#-
67 #                                                                     #
68 #   Here is where you enter the information about your server.        #
69 #                                                                     #
70
71 <server 
72         # name: Hostname of your server. Does not need to be valid.
73         name="penguin.omega.org.za"
74
75         # description: Server description. Spaces are allowed.
76         description="Waddle World"
77
78         # network: Network name given on connect to clients.
79         # Should be the same on all servers on the network and
80         # not contain spaces.
81         network="Omega">
82
83
84 #-#-#-#-#-#-#-#-#-#-#-#-   ADMIN INFORMATION   -#-#-#-#-#-#-#-#-#-#-#-#
85 #                                                                     #
86 #   Describes the Server Administrator's real name (optionally),      #
87 #   nick, and email address.                                          #
88 #                                                                     #
89
90 <admin 
91        # name: Real Name
92        name="Johnny English"
93
94        # nick: Nickname (preferably what you use on the network)
95        nick="MI5"
96
97        # email: email address. Does not have to be valid
98        # but should be for the users to be able to contact you.
99        email="MI5@the.best.secret.agent">
100
101
102 #-#-#-#-#-#-#-#-#-#-#-#-   PORT CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
103 #                                                                     #
104 #   Enter the port and address bindings here.                         #
105 #                                                                     #
106 #                                                                     #
107 #    ____                _   _____ _     _       ____  _ _   _        #
108 #   |  _ \ ___  __ _  __| | |_   _| |__ (_)___  | __ )(_) |_| |       #
109 #   | |_) / _ \/ _` |/ _` |   | | | '_ \| / __| |  _ \| | __| |       #
110 #   |  _ <  __/ (_| | (_| |   | | | | | | \__ \ | |_) | | |_|_|       #
111 #   |_| \_\___|\__,_|\__,_|   |_| |_| |_|_|___/ |____/|_|\__(_)       #
112 #                                                                     #
113 #  If you want to link servers to InspIRCd you must load the          #
114 #  m_spanningtree.so module! Please see the modules list below for    #
115 #  information on how to load this module! If you do not load this    #
116 #  module, server ports will NOT be bound!                            #
117 #                                                                     #
118 # PLEASE NOTE: If you have build InspIRCd with IPv6 support, you MUST #
119 # specify a bind address if you want the IRCd to bind to a IPv4 IP.   #
120
121 <bind 
122       # address: IP address to bind to if the box that you are hosting
123       # on has more than one IP, else the ircd will try to bind to all
124       # IP's on the box if this is not defined
125       address="" 
126
127       # port: Port for users and/or servers to be able to connect to.
128       # you can select multiple ports by separating them
129       # with a - character like the example below.
130       port="6697" 
131
132       # type: Type of bind block this is. It can either be clients or
133       # servers. Whichever you select will be the only type able to connect
134       # to this bind section.
135       type="clients" 
136
137       # ssl: If you want this bind section to use SSL, define either
138       # gnutls or openssl here. The appropriate SSL modules must be loaded
139       # for ssl to work. If you do not want this bind section to support ssl,
140       # just remove this option.
141       ssl="gnutls">
142
143 <bind address="" port="6660-6669" type="clients">
144
145 # When linking servers, the openssl and gnutls transports are largely
146 # link-compatible and can be used alongside each other or either/or
147 # on each end of the link without any significant issues.
148 # Transports can only be used on server blocks.
149 # Supported Transports are: "zip", "openssl" and "gnutls".
150 # You must load m_ziplinks module for zip, m_ssl_openssl for openssl
151 # or m_ssl_gnutls for gnutls.
152
153 <bind address="" port="7000,7001" type="servers">
154 <bind address="1.2.3.4" port="7005" type="servers" transport="openssl">
155
156
157 #-#-#-#-#-#-#-#-#-#-  DIE/RESTART CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
158 #                                                                     #
159 #   You can configure the passwords here which you wish to use for    #
160 #   the die and restart commands. Only trusted IRCop's who will       #
161 #   need this ability should know the die and restart password.       #
162 #                                                                     #
163
164 <power 
165        # diepass: Password for opers to use if they need to shutdown (die)
166        # a server.
167        diepass="" 
168
169        # restartpass: Password for opers to use if they need to restart
170        # a server.
171        restartpass="">
172
173
174 #-#-#-#-#-#-#-#-#-#-  CONNECTIONS CONFIGURATION  -#-#-#-#-#-#-#-#-#-#-#
175 #                                                                     #
176 #   This is where you can configure which connections are allowed     #
177 #   and denied access onto your server. The password is optional.     #
178 #   You may have as many of these as you require. To allow/deny all   #
179 #   connections, use a '*' or 0.0.0.0/0.                              #
180 #                                                                     #
181
182 <connect 
183          # allow: What IP addresses/hosts to allow for this block.
184          allow="196.12.*"  
185
186          # password: Password to use for this block/user(s)
187          password="secret" 
188
189          # port: What port this user is allowed to connect on. (optional)
190          # The port MUST be set to listen in the bind blocks above.
191          port="6667">
192
193 <connect 
194          # allow: What IP addresses/hosts to allow for this block.
195          allow="*"
196
197          # maxchans: Maximum number of channels a user in this class
198          # be in at one time. This overrides every other maxchans setting.
199          #maxchans="30"
200
201          # timeout: How long (in seconds) the server will wait before
202          # disconnecting a user if they do not do anything on connect.
203          # (Note, this is a client-side thing, if the client does not
204          # send /nick, /user or /pass)
205          timeout="60"
206
207          # pingfreq: How often the server tries to ping connecting clients/servers.
208          pingfreq="120"
209
210          # sendq: Amount of data that the server is allowed to send to the user
211          # before they are dropped.
212          sendq="262144"
213
214          # recvq: amount of data allowed in a clients queue before they are dropped.
215          recvq="8192"
216
217          # localmax: Maximum local connections per IP.
218          localmax="3"
219
220          # globalmax: Maximum global (network-wide) connections per IP.
221          globalmax="3"
222
223          # limit: How many users are allowed in this class
224          limit="5000"
225
226          # modes: Usermodes that are set on users in this block on connect.
227          # Enabling this option requires that the m_conn_umodes module be loaded.
228          # This entry is highly recommended to use for/with IP Cloaking/masking.
229          modes="+x">
230
231 <connect 
232          # deny: Will not let people connect if they have specified host/IP.
233          deny="69.254.*">
234
235 <connect deny="3ffe::0/32">
236
237 #-#-#-#-#-#-#-#-#-#-#-#-  CIDR CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
238 #                                                                     #
239 # CIDR configuration allows detection of clones and applying of       #
240 # throttle limits across a CIDR range. (A CIDR range is a group of    #
241 # IPs, for example, the CIDR range 192.168.1.0-192.168.1.255 may be   #
242 # represented as 192.168.1.0/24). This means that abuse across an ISP #
243 # is detected and curtailed much easier.                              #
244 #                                                                     #
245
246 <cidr
247           # ipv4clone: specifies how many bits of an IP address should be
248       # looked at for clones. The default only looks for clones on a
249       # single IP address of a user. You do not want to set this
250       # extremely low. (Values are 0-32).
251       ipv4clone="32"
252
253       # ipv6clone: specifies how many bits of an IP address should be
254       # looked at for clones. The default only looks for clones on a
255       # single IP address of a user. You do not want to set this
256       # extremely low. (Values are 0-128).
257       ipv6clone="128">
258
259 # This file has all the information about oper classes, types and o:lines.
260 # You *MUST* edit it.
261 <include file="opers.conf.example">
262
263 # This file has all the information about server links and ulined servers.
264 # You *MUST* edit it if you intend to link servers.
265 <include file="links.conf.example">
266
267 #-#-#-#-#-#-#-#-#-#-  MISCELLANEOUS CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
268 #                                                                     #
269
270 <files 
271        # motd: Path to your motd file. Path is relative to the conf directory.
272        motd="inspircd.motd.example"
273
274        # rules: Path to your rules file. Path is relative to the conf directory.
275        rules="inspircd.rules.example">
276
277 #-#-#-#-#-#-#-#-#-#-#-# MAXIMUM CHANNELS -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
278 #                                                                     #
279
280 <channels 
281           # users: Maximum number of channels a user can be in at once.
282           users="20"
283
284           # opers: Maximum number of channels a oper can be in at once.
285           opers="60">
286
287 #-#-#-#-#-#-#-#-#-#-#-#-#-#-# DNS SERVER -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
288 # If these values are not defined, InspIRCd uses the default DNS resolver
289 # of your system.
290
291 <dns 
292      # server: DNS server to use to attempt to resolve IP's to hostnames.
293      server="127.0.0.1" 
294
295      # timeout: seconds to wait to try to resolve DNS/hostname.
296      timeout="5">
297
298 # An example of using an IPv6 nameserver
299 #<dns server="::1" timeout="5">
300
301 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#  PID FILE  -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
302 #                                                                     #
303 # Define the path to the PID file here. The PID file can be used to   #
304 # rehash the ircd from the shell or to terminate the ircd from the    #
305 # shell using shell scripts, perl scripts, etc... and to monitor the  #
306 # ircd's state via cron jobs. If this is a relative path, it will be  #
307 # relative to the configuration directory, and if it is not defined,  #
308 # the default of 'inspircd.pid' is used.                              #
309 #                                                                     #
310
311 #<pid file="/path/to/inspircd.pid">
312
313 #-#-#-#-#-#-#-#-#-#-#-#-#- BANLIST LIMITS #-#-#-#-#-#-#-#-#-#-#-#-#-#-#
314 #                                                                     #
315 # Use these tags to customise the ban limits on a per channel basis.  #
316 # The tags are read from top to bottom, and any tag found which       #
317 # matches the channels name applies the banlimit to that channel.     #
318 # It is advisable to put an entry with the channel as '*' at the      #
319 # bottom of the list. If none are specified or no maxbans tag is      #
320 # matched, the banlist size defaults to 64 entries.                   #
321 #                                                                     #
322
323 <banlist chan="#morons" limit="128">
324 <banlist chan="*" limit="69">
325
326 #-#-#-#-#-#-#-#-#-#-#-  DISABLED FEATURES  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
327 #                                                                     #
328 # This tag is optional, and specifies one or more features which are  #
329 # not available to non-operators.                                     #
330 #                                                                     #
331 # For example you may wish to disable NICK and prevent non-opers from #
332 # changing their nicknames.                                           #
333 # Note that any disabled commands take effect only after the user has #
334 # 'registered' (e.g. after the initial USER/NICK/PASS on connection)  #
335 # so for example disabling NICK will not cripple your network.        #
336 #                                                                     #
337 # `fakenonexistant' will make the ircd pretend that nonexistant       #
338 # commands simply don't exist to non-opers ("no such command").       #
339 #                                                                     #
340 #<disabled commands="TOPIC MODE" usermodes="" chanmodes="" fakenonexistant="yes">
341
342
343 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-  RTFM LINE  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
344 #                                                                     #
345 #   Just remove this... Its here to make you read ALL of the config   #
346 #   file options ;)                                                   #
347
348 <die value="You should probably edit your config *PROPERLY* and try again.">
349
350
351
352 #-#-#-#-#-#-#-#-#-#-#-#-#-  SERVER OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
353 #                                                                     #
354 #   Settings to define which features are usable on your server.      #
355 #                                                                     #
356
357 <options 
358          # prefixquit: What (if anything) a users' quit message
359          # should be prefixed with.
360          prefixquit="Quit: "
361
362          # suffixquit: What (if anything) a users' quit message
363          # should be suffixed with.
364          suffixquit=""
365
366          # prefixpart: What (if anything) a users' part message
367          # should be prefixed with.
368          prefixpart="\""
369
370          # suffixpart: What (if anything) a users' part message
371          # should be suffixed with.
372          suffixpart="\""
373
374          # syntaxhints: If enabled, if a user fails to send the correct parameters
375          # for a command, the ircd will give back soome help text of what
376          # the correct parameters are
377          syntaxhints="no"
378
379          # cyclehosts: If enabled, when a user gets a host set, it will cycle
380          # them in all their channels. If not, it will simply change their host
381          # without cycling them.
382          cyclehosts="yes"
383
384          # ircumsgprefix: Use undernet-style message prefixing for NOTICE and
385          # PRIVMSG. If enabled, it will add users' prefix to the line, if not,
386          # it will just message the user.
387          ircumsgprefix="no"
388
389          # announcets: If set to yes, when the TS on a channel changes, all users
390          # in channel will be sent a NOTICE about it.
391          announcets="yes"
392
393          # hostintopic: If enabled, channels will show the host of the topicsetter
394          # in the topic.
395          hostintopic="yes"
396
397          # pingwarning: If a server does not respond to a ping within x seconds,
398          # it will send a notice to opers with snomask +l informing that the server
399          # is about to ping timeout.
400          pingwarning="15"
401
402          # serverpingfreq: How often pings are sent between servers (in seconds).
403          serverpingfreq="60"
404
405          # allowhalfop: Allows the use of +h channelmode (halfops).
406          allowhalfop="yes"
407
408          # defaultmodes: What modes are set on a empty channel when a user
409          # joins it and it is unregistered. This is similar to Asuka's
410          # autochanmodes.
411          defaultmodes="nt"
412
413          # moronbanner: This is the text that is sent to a user when they are
414          # banned from the server.
415          moronbanner="You're banned! Email haha@abuse.com with the ERROR line below for help."
416
417          # exemptchanops: Defines what channel modes channel operators are
418          # exempt from. Supported modes are +SfFgNc. Defaults to off.
419          exemptchanops=""
420
421          # invitebypassmodes: This allows /invite to bypass other channel modes.
422          # (Such as +k, +j, +l, etc)
423          invitebypassmodes="yes">
424
425
426 #-#-#-#-#-#-#-#-#-#-#-# PERFORMANCE CONFIGURATION #-#-#-#-#-#-#-#-#-#-#
427 #                                                                     #
428
429 <performance 
430              # netbuffersize: Size of the buffer used to recieve data from clients.
431              # The ircd may only read this amount of text in 1 go at any time.
432              netbuffersize="10240"
433
434              # maxwho: Maximum number of results to show in a /who query.
435              # It is not recommended to set this above 1024.
436              maxwho="128"
437
438              # somaxconn: The maximum number of connections that may be waiting
439              # in the accept queue. This is *NOT* the total maximum number of
440              # connections per server. Some systems may only allow this to be up
441              # to 5, while others (such as linux and *BSD) default to 128.
442              somaxconn="128"
443
444              # softlimit: This optional feature allows a defined softlimit for
445              # connections. If defined, it sets a soft max connections value.
446              # must be lower than ./configure maxclients.
447              softlimit="12800"
448
449              # quietbursts: When syncing or splitting from a network, a server
450              # can generate a lot of connect and quit messages to opers with
451              # +C and +Q snomasks. Setting this to yes squelches those messages,
452              # which makes it easier for opers, but degrades the functionality of
453              # bots like BOPM during netsplits.
454              quietbursts="yes"
455
456              # nouserdns: If enabled, no user DNS lookups will be performed on
457              # connecting users. This can save a lot of resources on very busy servers.
458              nouserdns="no">
459
460 #-#-#-#-#-#-#-#-#-#-#-# SECURITY CONFIGURATION  #-#-#-#-#-#-#-#-#-#-#-#
461 #                                                                     #
462
463 <security 
464
465           # announceinvites: If this option is set, then invites are announced
466           # to the channel when a user invites another user. If you consider 
467           # this to be unnecessary noise, set this to 'none'. 
468           # To announce to all ops, set this to 'ops' and to announce to all users,
469           # set the value to 'all'. The value 'dynamic' will make the messages
470           # go to every user who has power of INVITE on the channel. This
471           # is the recommended setting.
472           announceinvites="dynamic"
473
474           # hidemodes: If enabled, then the listmodes given will be hidden
475           # from users below halfop. This is not recommended to be set on +b
476           # as it may break some functionality in popular clients such as mIRC.
477           hidemodes="eI"
478
479           # disablehmac: If you are linking your InspIRCd to versions older
480           # than 1.1.6 (NOT RECOMMENDED), then you can specify this option and
481           # set it to yes. 1.1.6 and above support HMAC and challenge-response
482           # for password authentication. These can greatly enhance security of your
483           # server-to-server connections when you are not using SSL.
484           # It is highly recommended to keep this set to no.
485           disablehmac="no"
486
487           # hideulines: If this value is set to yes, U-lined server will
488           # be hidden from non-opers in /links and /map.
489           hideulines="no"
490
491           # flatlinks: If this value is set to yes, /map and /links will
492           # be flattened when shown to non-opers.
493           flatlinks="no"
494
495           # hidewhois: When defined, the given text will be used in place
496           # of the server a user is on when whoised by a non-oper. Most
497           # networks will want to set this to something like "*.netname.net"
498           # to conceal the actual server a user is on.
499           hidewhois=""
500
501           # hidebans: If this value is set to yes, when a user is banned ([gkz]lined)
502           # only opers will see the ban message when the user is removed
503           # from the server..
504           hidebans="no"
505
506           # hidekills: If defined, replaces who set a /kill with a custom string.
507           hidekills=""
508
509           # hidesplits: If enabled, non-opers will not be able to see which
510           # servers split in a netsplit, they will only be able to see that one
511           # occurred (If their client has netsplit detection).
512           hidesplits="no"
513
514           # maxtargets: Maximum number of targets per command.
515           # (Commands like /notice, /privmsg, /kick, etc)
516           maxtargets="20"
517
518           # customversion: Displays a custom string when a user /version's
519           # the ircd. This may be set for security reasons or vanity reasons.
520           customversion=""
521
522           # operspywhois: If this is set, when a oper /whois 's a user,
523           # it will show all channels the user is in including +s and +p
524           # channels.
525           operspywhois="no"
526
527           # runasuser: If this is set, InspIRCd will attempt to setuid
528           # to run as this user- allows binding of ports under 1024.
529           # NOT SUPPORTED/NEEDED UNDER WIINDOWS.
530           #runasuser=""
531
532           # runasgroup: If this is set, InspIRCd will attempt to set group
533           # to run under this group, which allows binding of ports under 1024
534           # NOT SUPPORTED/NEEDED UNDER WIINDOWS.
535           #runasgroup=""
536
537           # restrictbannedusers: If this is set, InspIRCd will not allow users
538           # banned on a channel to change nickname or message channels they are
539           # banned on.
540           restrictbannedusers="yes"
541
542           # userstats: /stats commands that users can run (opers can run all).
543           userstats="Pu">
544
545 #-#-#-#-#-#-#-#-#-#-#-#-# LIMITS CONFIGURATION  #-#-#-#-#-#-#-#-#-#-#-#
546 #                                                                     #
547 # This configuration tag defines the maximum sizes of various types   #
548 # on IRC, such as the maximum length of a channel name, and the       #
549 # maximum length of a channel. Note that with the exception of the    #
550 # identmax value all values given here are the exact values you would #
551 # expect to see on IRC. This contrasts with the older InspIRCd        #
552 # releases where these values would be one character shorter than     #
553 # defined to account for a null terminator on the end of the text.    #
554 #                                                                     #
555 # These values should match network-wide otherwise issues will occur. #
556
557 <limits 
558         # maxnick: Maximum length of a nickname.
559         maxnick="31"
560
561         # maxchan: Maximum length of a channel name.
562         maxchan="64"
563
564         # maxmodes: Maximum number of mode changes per line.
565         maxmodes="20"
566
567         # maxident: Maximum length of a ident/username.
568         maxident="11"
569
570         # maxquit: Maximum length of a quit message.
571         maxquit="255"
572
573         # maxtopic: Maximum length of a channel topic.
574         maxtopic="307"
575
576         # maxkick: Maximum length of a kick message.
577         maxkick="255"
578
579         # maxgecos: Maximum length of a GECOS (realname).
580         maxgecos="128"
581
582         # maxaway: Maximum length of an away messahe.
583         maxaway="200">
584
585
586 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
587 # Logging
588 # -------
589 #
590 # Logging is covered with the <log> tag, which you may use to change
591 # the behaviour of the logging of the IRCd.
592 #
593 # In InspIRCd as of 1.2, logging is pluggable and very extensible.
594 # Different files can log the same thing, different 'types' of log can
595 # go to different places, and modules can even extend the log tag
596 # to do what they want.
597 #
598 # An example log tag would be:
599 #       <log method="file" type="OPER" level="default" target="opers.log">
600 # which  would log all information on /oper (failed and successful) to
601 # a file called opers.log.
602 #
603 # There are many different types which may be used, and modules may
604 # generate their own. A list of useful types:
605 #       - USERS - information relating to user connection and disconnection
606 #       - CHANNELS - information relating to joining and parting of channels.
607 # XXX someone doc more on this
608 #
609 # You may also log *everything* by using a type of *, and subtract things out
610 # of that by using -TYPE - for example "* -USERINPUT -USEROUTPUT".
611 #
612 # The following log tag is highly default and uncustomised. It is recommended you
613 # sort out your own log tags. This is just here so you get some output.
614
615 <log method="file" type="* -USERINPUT -USEROUTPUT -m_spanningtree" level="default" target="ircd.log">
616
617 #-#-#-#-#-#-#-#-#-#-#-#-#-  WHOWAS OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
618 #                                                                     #
619 # This tag lets you define the behaviour of the /whowas command of    #
620 # your server.                                                        #
621 #                                                                     #
622
623 <whowas 
624         # groupsize: Maximum entries per nick shown when performing
625         # a /whowas nick.
626         groupsize="10"
627
628         # maxgroups: Maximum number of nickgroups that can be added to
629         # the list so that /whowas does not use a lot of resources on
630         # large networks.                                            
631         maxgroups="100000"
632
633         # maxkeep: Maximum time a nick is kept in the whowas list
634         # before being pruned. Time may be specified in seconds, 
635         # or in the following format: 1y2w3d4h5m6s. Minimum is
636         # 1 hour.
637         maxkeep="3d">                                                
638
639 #-#-#-#-#-#-#-#-#-#-#-#-#-#-  BAN OPTIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
640 #                                                                     #
641 # The ban tags define nick masks, host masks and ip ranges which are  #
642 # banned from your server. All details in these tags are local to     #
643 # Your server.                                                        #
644 #                                                                     #
645
646 <badip 
647        # ipmask: IP range to ban. Wildcards and CIDR can be used.
648        ipmask="69.69.69.69"
649
650        # reason: Reason to display when user is disconnected.
651        reason="No porn here thanks.">
652
653 <badnick 
654          # nick: Nick to disallow. Wildcards are supported.
655          nick="ChanServ" 
656
657          # reason: Reason to display on /nick.
658          reason="Reserved For Services">
659
660 <badnick nick="NickServ" reason="Reserved For Services">
661 <badnick nick="OperServ" reason="Reserved For Services">
662 <badnick nick="MemoServ" reason="Reserved For Services">
663
664 <badhost 
665          # host: ident@hostname to ban. 
666          # Wildcards and CIDR (if you specify an IP) can be used.
667          host="*@hundredz.n.hundredz.o.1337.kiddies.com" 
668
669          # reason: Reason to display when user is disconnected
670          reason="Too many 1337 kiddiots">
671
672 <badhost host="root@*" reason="Don't irc as root!">
673 <badhost host="*@172.32.0.0/16" reason="This subnet is bad.">
674
675 # exception: Hosts that are exempt from [kgz]lines.
676 <exception 
677            # host: ident@hostname to exempt. 
678            # Wildcards and CIDR (if you specify an IP) can be used.
679            host="*@ircop.host.com" 
680
681            # reason: Reason for exception. Only shown in /stats e
682            reason="Opers hostname">
683
684 #-#-#-#-#-#-#-#-#-#-#- INSANE BAN OPTIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
685 #                                                                     #
686 # This optional tag allows you to specify how wide a gline, eline,    #
687 # kline, zline or qline can be before it is forbidden from being      #
688 # set. By setting hostmasks="yes", you can allow all G, K, E lines,   #
689 # no matter how many users the ban would cover. This is not           #
690 # recommended! By setting ipmasks="yes", you can allow all Z lines,   #
691 # no matter how many users these cover too. Needless to say we        #
692 # don't recommend you do this, or, set nickmasks="yes", which will    #
693 # allow any qline.                                                    #
694 #                                                                     #
695
696 <insane 
697         # hostmasks: Allow bans with insane hostmasks (over-reaching bans)
698         hostmasks="no" 
699
700         # ipmasks: Allow bans with insane ipmasks (over-reaching bans)
701         ipmasks="no" 
702
703         # nickmasks: Allow bans with insane nickmasks (over-reaching bans)
704         nickmasks="no" 
705
706         # trigger: What percentage of users on the network to trigger
707         # specifying an insane ban as. The default is 95.5%, which means
708         # if you have a 1000 user network, a ban will not be allowed if it
709         # will be banning 955 or more users. 
710         trigger="95.5">
711
712
713 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- YAWN  -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
714 #                                                                     #
715 #   You should already know what to do here :)                        #
716
717 <die value="User error. Insert new user and press any key. (you didn't edit your config properly.)">
718
719 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# MODULES #-#-#-#-#-#-#-#-#-#-#-#-#-#-#
720 #    ____                _   _____ _     _       ____  _ _   _        #
721 #   |  _ \ ___  __ _  __| | |_   _| |__ (_)___  | __ )(_) |_| |       #
722 #   | |_) / _ \/ _` |/ _` |   | | | '_ \| / __| |  _ \| | __| |       #
723 #   |  _ <  __/ (_| | (_| |   | | | | | | \__ \ | |_) | | |_|_|       #
724 #   |_| \_\___|\__,_|\__,_|   |_| |_| |_|_|___/ |____/|_|\__(_)       #
725 #                                                                     #
726 # Well done, you've reached the end of the basic configuration, your  #
727 # ircd should now start if you want to try it out! (./inspircd start) #                      
728 #                                                                     #
729 # We now suggest you read and edit modules.conf, as modules are what  #
730 # provide almost all the features of InspIRCd. :)                     #
731 #                                                                     #
732 # The default does nothing -- we include it for simplicity for you.   #
733 <include file="modules.conf">
734
735
736 #########################################################################
737 #                                                                       #
738 #                     - InspIRCd Development Team -                     #
739 #                        http://www.inspircd.org                        #
740 #                                                                       #
741 #########################################################################