pisg-doc.html 125 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>pisg 1.0.a documentation</title>
  7. <style>
  8. :root { --bg:#fff; --fg:#1d2329; --muted:#5b6672; --line:#d9dee3; --code:#f3f5f7; --link:#0b6b3a; }
  9. @media (prefers-color-scheme: dark) {
  10. :root { --bg:#14181c; --fg:#e3e8ec; --muted:#98a4af; --line:#2a3138; --code:#1d2329; --link:#5fd08e; }
  11. }
  12. body { margin:0; background:var(--bg); color:var(--fg);
  13. font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
  14. main { max-width:60rem; margin:0 auto; padding:2rem 1rem 4rem; }
  15. a { color:var(--link); }
  16. h1 { margin-bottom:.2rem; } .sub { color:var(--muted); margin-top:0; }
  17. h2 { margin-top:3rem; padding-bottom:.3rem; border-bottom:2px solid var(--line); }
  18. h3 { margin-top:2rem; } h4 { margin:1rem 0 .2rem; color:var(--muted);
  19. text-transform:uppercase; font-size:.8rem; letter-spacing:.06em; }
  20. .purpose { font-weight:400; font-size:.85rem; color:var(--muted); margin-left:.5rem; }
  21. section.option { border-top:1px solid var(--line); padding-top:.5rem; }
  22. pre { background:var(--code); border:1px solid var(--line); border-radius:6px;
  23. padding:.75rem 1rem; overflow-x:auto; font-size:.85rem; }
  24. code { background:var(--code); padding:.1em .3em; border-radius:4px; font-size:.9em; }
  25. nav { border:1px solid var(--line); border-radius:8px; padding:.5rem 1.2rem; margin:1.5rem 0; }
  26. /* example config: code block with copy/download bar */
  27. .codewrap { border:1px solid var(--line); border-radius:8px; overflow:hidden; margin:1rem 0; }
  28. .codebar { display:flex; align-items:center; gap:.5rem; padding:.4rem .75rem; background:var(--code);
  29. border-bottom:1px solid var(--line); font-size:.85rem; color:var(--muted); }
  30. .codebar span { flex:1; font-family:ui-monospace,Menlo,Consolas,monospace; }
  31. .btn { font:inherit; font-size:.8rem; padding:.25rem .7rem; border:1px solid var(--line); border-radius:6px;
  32. background:var(--bg); color:var(--fg); cursor:pointer; text-decoration:none; }
  33. .btn:hover { border-color:var(--link); color:var(--link); }
  34. pre.cfg { margin:0; border:0; border-radius:0; max-height:36rem; overflow:auto; font-size:.8rem; line-height:1.45; }
  35. nav .opts a { display:inline-block; margin:.1rem .6rem .1rem 0; font-size:.85rem; }
  36. </style>
  37. </head>
  38. <body>
  39. <main>
  40. <h1>pisg 1.0.a documentation</h1>
  41. <p class="sub">How to install and configure pisg</p>
  42. <nav aria-label="Contents"><ul><li><a href="#what-is-pisg">1. What is pisg?</a><ul><li><a href="#requirements">What are the requirements to run pisg?</a></li></ul></li><li><a href="#setting-up-pisg">2. Setting up pisg for the first time</a><ul><li><a href="#setting-up-a-channel">Setting up a channel</a></li><li><a href="#user-options">Specifying user options</a></li><li><a href="#global-options">Setting global options</a></li><li><a href="#ignoring-links">Ignoring links</a></li><li><a href="#including-config">Including common settings for various channels</a></li><li><a href="#using-css">Changing the layout of your stats page</a></li><li><a href="#running-pisg">Running pisg</a></li><li><a href="#mailing-list-and-bugs">Obtaining help and reporting bugs</a></li></ul></li><li><a href="#reference">3. General pisg options</a><div class="opts"><a href="#Channel">Channel</a> <a href="#Format">Format</a> <a href="#Network">Network</a> <a href="#OutputFile">OutputFile</a> <a href="#OutputTag">OutputTag</a> <a href="#Logfile">Logfile</a> <a href="#LogDir">LogDir</a> <a href="#NFiles">NFiles</a> <a href="#Maintainer">Maintainer</a> <a href="#ColorScheme">ColorScheme</a> <a href="#AltColorScheme">AltColorScheme</a> <a href="#Lang">Lang</a> <a href="#PageHead">PageHead</a> <a href="#PageFoot">PageFoot</a> <a href="#LogPrefix">LogPrefix</a> <a href="#LogSuffix">LogSuffix</a> <a href="#Silent">Silent</a> <a href="#CacheDir">CacheDir</a> <a href="#ChannelIndex">ChannelIndex</a> <a href="#HomeLink">HomeLink</a> <a href="#ShowNavBar">ShowNavBar</a></div></li><li><a href="#reference-stats">4. Options for various statistics features</a><div class="opts"><a href="#DailyActivity">DailyActivity</a> <a href="#ShowActiveTimes">ShowActiveTimes</a> <a href="#ShowActiveNicks">ShowActiveNicks</a> <a href="#ShowBigNumbers">ShowBigNumbers</a> <a href="#ShowTopics">ShowTopics</a> <a href="#ShowLines">ShowLines</a> <a href="#ShowWpl">ShowWpl</a> <a href="#ShowCpl">ShowCpl</a> <a href="#ShowWords">ShowWords</a> <a href="#ShowLastSeen">ShowLastSeen</a> <a href="#ShowTime">ShowTime</a> <a href="#ShowLineTime">ShowLineTime</a> <a href="#ShowWordTime">ShowWordTime</a> <a href="#ShowRandQuote">ShowRandQuote</a> <a href="#ShowLegend">ShowLegend</a> <a href="#ShowKickLine">ShowKickLine</a> <a href="#ShowActionLine">ShowActionLine</a> <a href="#ShowShoutLine">ShowShoutLine</a> <a href="#ShowFoulDecimals">ShowFoulDecimals</a> <a href="#ShowFoulLine">ShowFoulLine</a> <a href="#ShowViolentLines">ShowViolentLines</a> <a href="#ShowMuw">ShowMuw</a> <a href="#ShowMrn">ShowMrn</a> <a href="#ShowMru">ShowMru</a> <a href="#ShowCharts">ShowCharts</a> <a href="#ShowOps">ShowOps</a> <a href="#ShowVoices">ShowVoices</a> <a href="#ShowHalfops">ShowHalfops</a> <a href="#ShowMostNicks">ShowMostNicks</a> <a href="#ShowActiveGenders">ShowActiveGenders</a> <a href="#ShowSmileys">ShowSmileys</a> <a href="#ShowKarma">ShowKarma</a> <a href="#ShowMostActiveByHour">ShowMostActiveByHour</a> <a href="#ShowOnlyTop">ShowOnlyTop</a> <a href="#ShowMostActiveByHourGraph">ShowMostActiveByHourGraph</a> <a href="#ShowOverview">ShowOverview</a> <a href="#ShowRelations">ShowRelations</a> <a href="#RelationNicks">RelationNicks</a> <a href="#RelationMinWeight">RelationMinWeight</a> <a href="#ShowTimePersonalities">ShowTimePersonalities</a> <a href="#ShowConcentration">ShowConcentration</a> <a href="#ShowSignatureWords">ShowSignatureWords</a> <a href="#IgnoreWords">IgnoreWords</a> <a href="#NoIgnoredQuotes">NoIgnoredQuotes</a> <a href="#FoulWords">FoulWords</a> <a href="#ViolentWords">ViolentWords</a> <a href="#BadUrls">BadUrls</a> <a href="#MinQuote">MinQuote</a> <a href="#MaxQuote">MaxQuote</a> <a href="#WordLength">WordLength</a> <a href="#QuoteWidth">QuoteWidth</a> <a href="#BigNumbersThreshold">BigNumbersThreshold</a> <a href="#ActiveNicks">ActiveNicks</a> <a href="#ActiveNicks2">ActiveNicks2</a> <a href="#ActiveNicksByHour">ActiveNicksByHour</a> <a href="#MostNicksHistory">MostNicksHistory</a> <a href="#MostNicksVerbose">MostNicksVerbose</a> <a href="#TopicHistory">TopicHistory</a> <a href="#UrlHistory">UrlHistory</a> <a href="#ChartsHistory">ChartsHistory</a> <a href="#ChartsRegexp">ChartsRegexp</a> <a href="#WordHistory">WordHistory</a> <a href="#NickHistory">NickHistory</a> <a href="#SmileyHistory">SmileyHistory</a> <a href="#KarmaHistory">KarmaHistory</a> <a href="#NickTracking">NickTracking</a> <a href="#NickLimit">NickLimit</a> <a href="#SortByWords">SortByWords</a></div></li><li><a href="#reference-pictures">5. Picture options</a><ul><li><a href="#PicLocation">PicLocation</a></li><li><a href="#UserPics">UserPics</a></li><li><a href="#ImagePath">ImagePath</a></li><li><a href="#DefaultPic">DefaultPic</a></li><li><a href="#ImageGlobPath">ImageGlobPath</a></li><li><a href="#PicWidth">PicWidth</a></li><li><a href="#PicHeight">PicHeight</a></li></ul></li><li><a href="#reference-misc">6. Misc options</a><ul><li><a href="#Charset">Charset</a></li><li><a href="#LogCharset">LogCharset</a></li><li><a href="#LogCharsetFallback">LogCharsetFallback</a></li><li><a href="#TimeOffset">TimeOffset</a></li><li><a href="#RegexpAliases">RegexpAliases</a></li><li><a href="#LangFile">LangFile</a></li><li><a href="#CssDir">CssDir</a></li><li><a href="#HiCell">HiCell, HiCell2</a></li><li><a href="#LogType">LogType</a></li><li><a href="#StatsDump">StatsDump</a></li></ul></li><li><a href="#copyright">7. Copyright and License</a></li><li><a href="#example-config">8. Complete example configuration</a></li></ul></nav>
  43. <section class="chapter" id="what-is-pisg"><h2>1. What is pisg?</h2>
  44. <p>pisg is an IRC statistics generator. It takes IRC logfiles and turns
  45. them into nice looking stats.</p>
  46. <p>In general, you would do something like this to get it running:
  47. <ul>
  48. <li><p>Enable logging in an IRC bot, or in your IRC client. The log will be
  49. outputted into a file.</p>
  50. </li>
  51. <li><p>You set up pisg, you define the channel name, and the path to the
  52. logfile you created.</p>
  53. </li>
  54. <li><p>You run pisg, pisg runs the log through and create statistics, it
  55. then creates an HTML page which you can upload to a webserver.</p>
  56. </li>
  57. </ul></p>
  58. <section id="requirements"><h3>What are the requirements to run pisg?</h3>
  59. <p><ul>
  60. <li><p>An IRC client or bot where pisg supports the output logfile.</p>
  61. </li>
  62. <li><p>Any operating system which Perl runs on, this includes popular OSes
  63. such as Linux, FreeBSD, Windows and Mac. You will have a hard time
  64. finding an OS where Perl isn&#x27;t supported. For Windows this means
  65. that you need to download <a href="http://activestate.com/Products/ActivePerl/">ActivePerl</a>.</p>
  66. </li>
  67. <li><p><em>Optional</em> - a system to host the statistics page
  68. 24 hours a day, 7 days a week.</p>
  69. </li>
  70. <li><p><em>Optional</em> - a system to log the channel, 24 hours
  71. a day, 7 days a week.</p>
  72. </li>
  73. </ul></p>
  74. </section>
  75. </section>
  76. <section class="chapter" id="setting-up-pisg"><h2>2. Setting up pisg for the first time</h2>
  77. <p>Most configuration happens through the <code>pisg.cfg</code>
  78. file, the file format is made to be easy to read, and easy to extend for
  79. further use. It uses an XML-like format, with elements and attributes.</p>
  80. <section id="setting-up-a-channel"><h3>Setting up a channel</h3>
  81. <p>An element called <a href="#Channel">Channel</a> is made for defining
  82. channels, a quick example of a channel is here:
  83. <pre>&lt;channel=&quot;#channel&quot;&gt;
  84. Logfile = &quot;channel.log&quot;
  85. Format = &quot;mIRC&quot;
  86. Maintainer = &quot;John&quot;
  87. OutputFile = &quot;mychan.html&quot;
  88. &lt;/channel&gt;</pre>
  89. The above will define a <a href="#Channel">Channel</a> called <code>#channel</code>, the
  90. logfile pisg will look for is called <code>channel.log</code> and
  91. the <a href="#Format">Format</a> of the logfile will be <code>mIRC</code>. The
  92. <a href="#Maintainer">Maintainer</a> (which will be stated on the output page) is
  93. <code>John</code>.</p>
  94. <p>That is basically it! Now, there are a lot more options that you can use
  95. for your channels, for this please refer to the reference documentation.</p>
  96. <p>Also be-aware of the fact that pisg uses various images to show the
  97. time-related bars. These images are placed in the
  98. <code>gfx/</code> folder and should be placed into the same
  99. directory as your outputted HTML file.</p>
  100. </section>
  101. <section id="user-options"><h3>Specifying user options</h3>
  102. <p>User options are set with a simple XML-like syntax in the form:
  103. <pre>&lt;user nick=&quot;NICK&quot; option=&quot;VALUE&quot;&gt;</pre>
  104. Remember, the nick is always required.
  105. For example to add aliases to a nick, then you could do this:
  106. <pre>&lt;user nick=&quot;Joe&quot; alias=&quot;Joe^*&quot;&gt;</pre>
  107. The asterisk (*) means that it will match all nicks starting with &#x27;Joe^&#x27;. So
  108. it will add all Joe^&#x27;s to &#x27;Joe&#x27; in the stats.
  109. Another thing you can do is to add a picture to a user:
  110. <pre>&lt;user nick=&quot;Ben&quot; pic=&quot;ben_holiday.jpg&quot;&gt;</pre>
  111. If you have a larger picture of the user as well, you can make the picture
  112. on the stats page link to it:
  113. <pre>&lt;user nick=&quot;Ben&quot; pic=&quot;ben_holiday.jpg&quot; bigpic=&quot;ben-big.jpg&quot;&gt;</pre>
  114. You can include * or ? to enable filename globbing to randomly choose one
  115. from several pictures: (see documentation for the
  116. <a href="#ImageGlobPath">ImageGlobPath</a> option)
  117. <pre>&lt;user nick=&quot;Ben&quot; pic=&quot;ben_*.jpg&quot;&gt;</pre>
  118. You can also set a user&#x27;s sex.
  119. The sex setting can be &quot;f&quot;emale, &quot;m&quot;ale, or &quot;b&quot;ot:
  120. <pre>&lt;user nick=&quot;Ben&quot; sex=&quot;m&quot;&gt;</pre>
  121. Also you can add links to URLs and e-mails:
  122. <pre>&lt;user nick=&quot;Christine&quot; link=&quot;http://www.christine.com&quot;&gt;</pre>
  123. or
  124. <pre>&lt;user nick=&quot;Chris&quot; link=&quot;chris@host.com&quot;&gt;</pre>
  125. The last thing you can do is to ignore nicks (for example bots):
  126. <pre>&lt;user nick=&quot;nameofbot&quot; ignore=&quot;y&quot;&gt;</pre>
  127. You don&#x27;t have to do all this in many lines, you could just as easily do:
  128. <pre>&lt;user nick=&quot;Joe&quot; alias=&quot;Joe^away Joe^work&quot; pic=&quot;joe.jpg&quot; link=&quot;joe@joe.com&quot; sex=&quot;m&quot;&gt;</pre>
  129. (Here the aliases are a space separated list of nicks, that also works! But *
  130. as a wildcard is smarter, although it is slower).</p>
  131. </section>
  132. <section id="global-options"><h3>Setting global options</h3>
  133. <p>Many times, it will be useful to set up global options, global options
  134. are set like this:
  135. <pre>&lt;set option=&quot;VALUE&quot;&gt;</pre>
  136. Any global option will be overriden by anything defined within channel
  137. elements (see <a href="#setting-up-a-channel">Setting up a channel</a>)</p>
  138. <p>For example, to change the background color of the stats page, you
  139. could do:
  140. <pre>&lt;set bgcolor=&quot;black&quot;&gt;</pre>
  141. You can set many options in a single <code>set</code>:
  142. <pre>&lt;set lang=&quot;DE&quot; timeoffset=&quot;+1&quot;&gt;</pre>
  143. The above will set the language on the statistics page to DE (Deutsch,
  144. German) and set the time offset to +1.
  145. All options available are mentioned in the reference documentation.</p>
  146. </section>
  147. <section id="ignoring-links"><h3>Ignoring links</h3>
  148. <p>It&#x27;s possible to ignore links in the &quot;Most referenced URLs&quot; section:
  149. <pre>&lt;link url=&quot;http://www.slashdot.org&quot; ignore=&quot;y&quot;&gt;</pre></p>
  150. </section>
  151. <section id="including-config"><h3>Including common settings for various channels</h3>
  152. <p>If you have, for example, more than one channel, where the users are the
  153. same, or you don&#x27;t want to maintain more than one user file, you can use
  154. the &quot;include&quot; setting in the main config file:
  155. <pre>&lt;include=&quot;/home/vetinari/pisg/users.cfg&quot;&gt;</pre>
  156. This will include the file /home/vetinari/pisg/users.cfg in the config
  157. at the place where the include statement is set.</p>
  158. <p>Note, that you can NOT include a file from an included file!</p>
  159. </section>
  160. <section id="using-css"><h3>Changing the layout of your stats page</h3>
  161. <p>The standard layout and colors in the outputted HTML page are made to be
  162. somewhat clean and neutral. But you have the chance to change the layout
  163. yourself.</p>
  164. <p>There are a few predefined color schemes for you to use, use the
  165. <a href="#ColorScheme">ColorScheme</a> option when using them. The
  166. colorschemes distributed with pisg are: default (which is the default),
  167. darkgalaxy, darkred, justgrey, ocean, orange_grey, pisg, softgreen.</p>
  168. <p>When changing it, you need a fair knowledge of CSS (Cascading Style
  169. Sheets). CSS is what most of the web uses today to define styles and
  170. layout on HTML pages.
  171. With the pisg distribution, look in the <code>layout</code>
  172. directory. In it resides <code>default.css</code> which is the
  173. file being included onto the HTML page. Open it in a text editor like
  174. vi or notepad. Then change it until you&#x27;re happy with it. Be aware that
  175. you might want to look at the <a href="#HiCell">HiCell and HiCell2</a>
  176. options through pisg.cfg for changing the last two colors.</p>
  177. <p>If you have created a nice stylesheet which other can take advantage of,
  178. you are encouraged to send it to the pisg mailing list so that it can be
  179. distributed with the next version of pisg.</p>
  180. <p>If you want to embed the statistics into another page, use the &quot;none&quot; color scheme.
  181. Pisg will then omit the HTML header and write only the body part.</p>
  182. </section>
  183. <section id="running-pisg"><h3>Running pisg</h3>
  184. <p>When everything is set up in the pisg configuration file (pisg.cfg),
  185. then you simply run pisg on the command-line.</p>
  186. <p>Using Linux, BSD or another UNIX-like system:
  187. <pre>user@host:pisg-0.37$ ./pisg</pre></p>
  188. <p>Using Windows:
  189. <pre>c:\pisg&gt; perl pisg</pre></p>
  190. <p>The program will run and parse the logfiles you specified in the
  191. configuration file.</p>
  192. <p>If you are using Linux, BSD or another UNIX-like system and want run
  193. pisg automatically several times a day, then see the
  194. <code>crontab</code> file in the <code>scripts/</code>
  195. directory.</p>
  196. <p>For Windows, see the <code>windows-upload-ftp.txt</code> file
  197. with the pisg distribution, this file is also placed in the
  198. <code>scripts/</code> directory.</p>
  199. </section>
  200. <section id="mailing-list-and-bugs"><h3>Obtaining help and reporting bugs</h3>
  201. <p>If your problem could not be resolved through here, then you should send
  202. an e-mail to the pisg mailing list. You can subscribe and see more info
  203. at <a href="http://lists.sourceforge.net/lists/listinfo/pisg-general">http://lists.sourceforge.net/lists/listinfo/pisg-general</a>.</p>
  204. <p>If you believe that you have found a bug, you should use the SourceForge
  205. <a href="http://sourceforge.net/tracker/?group_id=31862&amp;atid=403711">bug
  206. tracking system.</a></p>
  207. </section>
  208. </section>
  209. <section class="chapter" id="reference"><h2>3. General pisg options</h2>
  210. <section class="option" id="Channel"><h3>Channel <span class="purpose">define channel name</span></h3>
  211. <pre>&lt;channel=&quot;#channel&quot;&gt;
  212. Logfile = &quot;channel.log&quot;
  213. Format = &quot;mIRC&quot;
  214. Maintainer = &quot;John&quot;
  215. &lt;/channel&gt;</pre>
  216. <h4>Description</h4>
  217. <p><code>Channel</code> is used in two contexts, globally when using
  218. &lt;set&gt; and when defining new channels. It sets the name of the
  219. channel.</p>
  220. <h4>Default</h4>
  221. <p>Unset</p>
  222. </section>
  223. <section class="option" id="Format"><h3>Format <span class="purpose">the logfile format</span></h3>
  224. <pre>&lt;channel=&quot;#channel&quot;&gt;
  225. Logfile = &quot;channel.log&quot;
  226. Format = &quot;eggdrop&quot;
  227. Maintainer = &quot;John&quot;
  228. &lt;/channel&gt;
  229. &lt;set Format=&quot;mIRC&quot;&gt;</pre>
  230. <h4>Description</h4>
  231. <p><code>Format</code> is used to define the format of the logfile,
  232. pisg supports a various number of different logfiles, see the FORMATS
  233. file included with the pisg distribution. If your logfiles have the
  234. suffix .gz or .bz2, they will automatically be decompressed and read by
  235. pisg.
  236. See also <a href="#Maintainer">Maintainer</a>.</p>
  237. <h4>Default</h4>
  238. <p>Unset</p>
  239. </section>
  240. <section class="option" id="Network"><h3>Network <span class="purpose">the IRC network of the channel</span></h3>
  241. <pre>&lt;channel=&quot;#channel&quot;&gt;
  242. Logfile = &quot;channel.log&quot;
  243. Format = &quot;eggdrop&quot;
  244. Network = &quot;Undernet&quot;
  245. &lt;/channel&gt;
  246. &lt;set Network=&quot;Quakenet&quot;&gt;</pre>
  247. <h4>Description</h4>
  248. <p><code>Network</code> is used to set the network which the channel
  249. resides on, this name is displayed on the stats page.</p>
  250. <h4>Default</h4>
  251. <p>SomeIRCNetwork</p>
  252. </section>
  253. <section class="option" id="OutputFile"><h3>OutputFile <span class="purpose">name of the generated HTML page</span></h3>
  254. <pre>&lt;channel=&quot;#channel&quot;&gt;
  255. Logfile = &quot;channel.log&quot;
  256. Format = &quot;eggdrop&quot;
  257. OutputFile = &quot;mychan.html&quot;
  258. &lt;/channel&gt;
  259. &lt;set OutputFile=&quot;mychan.html&quot;&gt;</pre>
  260. <h4>Description</h4>
  261. <p><code>OutputFile</code> is used to define the name of the
  262. generated statistics page.</p>
  263. <h4>Default</h4>
  264. <p>index.html</p>
  265. </section>
  266. <section class="option" id="OutputTag"><h3>OutputTag <span class="purpose">tag to insert into OutputFile</span></h3>
  267. <pre>&lt;channel=&quot;#channel&quot;&gt;
  268. LogDir = &quot;logs/&quot;
  269. Format = &quot;eggdrop&quot;
  270. OutputFile = &quot;mychan%t.html&quot;
  271. OutputTag = &quot;-week&quot;
  272. &lt;/channel&gt;
  273. &lt;set OutputTag=&quot;-week&quot;&gt;</pre>
  274. <h4>Description</h4>
  275. <p><code>OutputTag</code> specifies a string that will replace
  276. occurrences of &quot;%t&quot; in <a href="#OutputFile">OutputFile</a>. This option is most
  277. useful when used as a command line switch (-t) to pisg in conjunction with
  278. <a href="#NFiles">NFiles</a> (-nf). Example:
  279. <pre>$ pisg -co pisg.conf
  280. $ pisg -co pisg.conf -nf 8 -t -week</pre>
  281. Leaving out the <code>OutputTag</code> settings from the above
  282. pisg.conf snippet, this writes both the full statistics (mychan.html) and
  283. statistics for the last week (mychan-week.html) using the same pisg config
  284. file. (Assuming that there are separate logfiles for each day.)</p>
  285. <h4>Default</h4>
  286. <p>unset</p>
  287. </section>
  288. <section class="option" id="Logfile"><h3>Logfile <span class="purpose">name of logfile to parse</span></h3>
  289. <pre>&lt;channel=&quot;#channel&quot;&gt;
  290. Logfile=&quot;/home/foo/eggdrop/logs/mylog.txt&quot;
  291. Format = &quot;eggdrop&quot;
  292. &lt;/channel&gt;
  293. &lt;set Logfile=&quot;foo.log&quot;&gt;</pre>
  294. <h4>Description</h4>
  295. <p>This defines the filename of the logfile to parse for the channel. If
  296. you want to parse a directory full of logfiles, you should use the
  297. <a href="#LogDir">LogDir</a> option instead. Providing this option multiple
  298. times will parse multiple files in the order the statements appear.
  299. Wildcards (* ? []) will be expanded.
  300. See also <a href="#LogDir">LogDir</a> and <a href="#NFiles">NFiles</a>.</p>
  301. <h4>Default</h4>
  302. <p>unset</p>
  303. </section>
  304. <section class="option" id="LogDir"><h3>LogDir <span class="purpose">parse a directory full of logs</span></h3>
  305. <pre>&lt;channel=&quot;#channel&quot;&gt;
  306. LogDir=&quot;/home/foo/eggdrop/logs/&quot;
  307. Format = &quot;eggdrop&quot;
  308. &lt;/channel&gt;
  309. &lt;set LogDir=&quot;dailylogs/&quot;&gt;</pre>
  310. <h4>Description</h4>
  311. <p>When <code>LogDir</code> is defined to valid path to a directory,
  312. then pisg will run through that directory, parse all logfiles in it and
  313. create one HTML page from it. Useful with for example eggdrop logs. Providing
  314. this option multiple times will parse all the files in multiple
  315. directories in the order the statements appear.
  316. See also <a href="#NFiles">NFiles</a>, <a href="#LogPrefix">LogPrefix</a>, and
  317. <a href="#LogSuffix">LogSuffix</a>.</p>
  318. <h4>Default</h4>
  319. <p>unset</p>
  320. </section>
  321. <section class="option" id="NFiles"><h3>NFiles <span class="purpose">parse only the last files in</span></h3>
  322. <pre>&lt;channel=&quot;#channel&quot;&gt;
  323. LogDir=&quot;/home/foo/eggdrop/logs/&quot;
  324. NFiles=&quot;8&quot;
  325. Format=&quot;eggdrop&quot;
  326. &lt;/channel&gt;
  327. &lt;set NFiles=&quot;8&quot;&gt;</pre>
  328. <h4>Description</h4>
  329. <p>When <code>NFiles</code> is set to a positive integer, pisg will
  330. process only the last that much logfiles from <a href="#Logfile">Logfile</a>
  331. and <a href="#LogDir">LogDir</a> options. Useful to create statistics that
  332. cover the last week or month (assuming there are separate logfile per
  333. day/week/etc.).</p>
  334. <h4>Default</h4>
  335. <p>0 (process all files)</p>
  336. </section>
  337. <section class="option" id="Maintainer"><h3>Maintainer <span class="purpose">name of the maintainer</span></h3>
  338. <pre>&lt;channel=&quot;#channel&quot;&gt;
  339. Logfile = &quot;channel.log&quot;
  340. Format = &quot;mIRC&quot;
  341. Maintainer = &quot;Benny&quot;
  342. &lt;/channel&gt;
  343. &lt;set Maintainer=&quot;Benny&quot;&gt;</pre>
  344. <h4>Description</h4>
  345. <p><code>Maintainer</code> is used to define the name of the
  346. maintainer of the statistics page, this can be either the person
  347. generating the stats or the bot/client doing the logging.
  348. The maintainer is displayed in the outputted stats page.
  349. This setting is also used by some log parsers where &quot;You&quot; is used
  350. instead of the nick in the log (e.g. &quot;You have been kicked&quot;).
  351. See also <a href="#Format">Format</a>, <a href="#NickTracking">NickTracking</a>.</p>
  352. <h4>Default</h4>
  353. <p>MAINTAINER</p>
  354. </section>
  355. <section class="option" id="ColorScheme"><h3>ColorScheme <span class="purpose">use a different color scheme for stats page</span></h3>
  356. <pre>&lt;channel=&quot;#channel&quot;&gt;
  357. Logfile = &quot;channel.log&quot;
  358. ColorScheme = &quot;darkgalaxy&quot;
  359. Maintainer = &quot;John&quot;
  360. &lt;/channel&gt;
  361. &lt;set ColorScheme=&quot;default&quot;&gt;</pre>
  362. <h4>Description</h4>
  363. <p><code>ColorScheme</code> is used to define the color scheme used
  364. for the statistics page. Actually it&#x27;s the CSS file being included.
  365. CSS files distributed with pisg are: darkgalaxy, darkred, default,
  366. justgrey, ocean, orange_grey, pisg, softgreen (omit the .css). The file
  367. will be included statically in the generated HTML page. If you give a file
  368. name or URL (i.e. a color scheme name with .css or a path), the file will
  369. be linked to instead. Using &quot;none&quot; will cause pisg to write only the body
  370. of the page; use this to include the statistics into a custom page. See
  371. also <a href="#CssDir">CssDir</a>, <a href="#AltColorScheme">AltColorScheme</a>,
  372. <a href="#HiCell">HiCell/HiCell2</a>.</p>
  373. <h4>Default</h4>
  374. <p>default</p>
  375. </section>
  376. <section class="option" id="AltColorScheme"><h3>AltColorScheme <span class="purpose">alternate stylesheets for stats page</span></h3>
  377. <pre>&lt;channel=&quot;#channel&quot;&gt;
  378. Logfile = &quot;channel.log&quot;
  379. ColorScheme = &quot;darkgalaxy&quot;
  380. AltColorScheme = &quot;layout/ocean.css&quot;
  381. Maintainer = &quot;John&quot;
  382. &lt;/channel&gt;
  383. &lt;set AltColorScheme=&quot;layout/darkgalaxy.css layout/justgrey.css&quot;&gt;</pre>
  384. <h4>Description</h4>
  385. <p><code>AltColorScheme</code> defines an alternate CSS file to
  386. be used for the statistics page. Multiple files can be given (space
  387. separated.) Note that this is not supported by all browsers.
  388. See also <a href="#ColorScheme">ColorScheme</a> and <a href="#CssDir">CssDir</a>.</p>
  389. <h4>Default</h4>
  390. <p>default</p>
  391. </section>
  392. <section class="option" id="Lang"><h3>Lang <span class="purpose">define the language / translation to use</span></h3>
  393. <pre>&lt;channel=&quot;#channel&quot;&gt;
  394. Logfile = &quot;channel.log&quot;
  395. Format = &quot;mIRC&quot;
  396. Lang = &quot;DE&quot;
  397. OutputFile = &quot;mychan-%l.html&quot;
  398. &lt;/channel&gt;
  399. &lt;set Lang=&quot;FR,SE&quot;&gt;</pre>
  400. <h4>Description</h4>
  401. <p><code>Lang</code> defines the language to use for the stats.
  402. Currently, lang.txt includes:
  403. EN (English),
  404. BG (Bulgarian),
  405. CA (Catalan),
  406. CZ (Czech),
  407. DA (Danish),
  408. DE (German),
  409. EE (Estonian),
  410. ES (Spanish),
  411. FI (Finnish),
  412. FR (French),
  413. GR (Greek),
  414. HE (Hebrew),
  415. HU (Hungarian),
  416. IS (Icelandic),
  417. IT (Italian),
  418. NL (Dutch),
  419. NL_BE (Flemish),
  420. NO (Norwegian),
  421. PL (Polish),
  422. PT (Portuguese),
  423. PT_BR (Portuguese/Brazil),
  424. RO (Romanian),
  425. RU (Russian),
  426. SE (Swedish),
  427. SI (Slovenian),
  428. SK (Slovak),
  429. SQ (Albanian),
  430. TR (Turkish),
  431. YU (Serbian).
  432. Output in several languages can be generated at the same time, separate the
  433. languages by comma. The tag %l in the output file name will be replaced by
  434. the language name. See also <a href="#LangFile">LangFile</a>.</p>
  435. <h4>Default</h4>
  436. <p>EN (English)</p>
  437. </section>
  438. <section class="option" id="PageHead"><h3>PageHead <span class="purpose">define a file as page header</span></h3>
  439. <pre>&lt;channel=&quot;#channel&quot;&gt;
  440. Logfile = &quot;channel.log&quot;
  441. Format = &quot;mIRC&quot;
  442. OutputFile = &quot;stats.html&quot;
  443. PageHead = &quot;myheader.txt&quot;
  444. &lt;/channel&gt;
  445. &lt;set PageHead=&quot;someheader.txt&quot;&gt;</pre>
  446. <h4>Description</h4>
  447. <p><code>PageHead</code> is used to include a file in the stats page,
  448. for example an introduction text, a link to an image or a banner. The
  449. file can hold anything, it will be included raw in the stats page -
  450. so HTML should be preferred. The file will be included in the top of
  451. the page. This option is the opposite of <a href="#PageFoot">PageFoot</a>.</p>
  452. <h4>Default</h4>
  453. <p>none</p>
  454. </section>
  455. <section class="option" id="PageFoot"><h3>PageFoot <span class="purpose">define a file as page footer</span></h3>
  456. <pre>&lt;channel=&quot;#channel&quot;&gt;
  457. Logfile = &quot;channel.log&quot;
  458. Format = &quot;mIRC&quot;
  459. outputfile = &quot;stats.html&quot;
  460. PageFoot = &quot;myfooter.txt&quot;
  461. &lt;/channel&gt;
  462. &lt;set PageFoot=&quot;somefooter.txt&quot;&gt;</pre>
  463. <h4>Description</h4>
  464. <p><code>PageFoot</code> is used to include a file in the stats page,
  465. for example an introduction text, a link to an image or a banner. The
  466. file can hold anything, it will be included raw in the stats page -
  467. so HTML should be preferred. The file will be included in the bottom of
  468. the page. This option is the opposite of <a href="#PageHead">PageHead</a>.</p>
  469. <h4>Default</h4>
  470. <p>none</p>
  471. </section>
  472. <section class="option" id="LogPrefix"><h3>LogPrefix <span class="purpose">only parse logs LogPrefixed with a user defined string</span></h3>
  473. <pre>&lt;channel=&quot;#channel&quot;&gt;
  474. LogDir=&quot;/home/foo/eggdrop/logs/&quot;
  475. Format = &quot;eggdrop&quot;
  476. LogPrefix = &quot;logjun&quot;
  477. &lt;/channel&gt;
  478. &lt;set LogPrefix=&quot;logjanuary&quot;&gt;</pre>
  479. <h4>Description</h4>
  480. <p>When using the <a href="#LogDir">LogDir</a> option and you only want to use
  481. a slew of the files in it, you can have pisg choose only files which are
  482. prefixed with a special string.</p>
  483. <h4>Default</h4>
  484. <p>unset</p>
  485. </section>
  486. <section class="option" id="LogSuffix"><h3>LogSuffix <span class="purpose">Regexp to sort logfiles by format month||day||year</span></h3>
  487. <pre>&lt;set LogSuffix=&quot;\.\d\d([A-Za-z]+)\d\d\d\d||\.(\d\d)[A-Za-z]+\d\d\d\d||\.\d\d[A-Za-z]+(\d\d\d\d)&quot;&gt;</pre>
  488. <h4>Description</h4>
  489. <p><code>LogSuffix</code> is used to define the suffix of a logfile,
  490. it only works when <a href="#LogDir">LogDir</a> is defined. The example in
  491. the synopsis is for the eggdrop bots default format.</p>
  492. <h4>Default</h4>
  493. <p>Unset</p>
  494. </section>
  495. <section class="option" id="Silent"><h3>Silent <span class="purpose">make pisg silent, suppress messages</span></h3>
  496. <pre>&lt;set Silent=&quot;1&quot;&gt;</pre>
  497. <h4>Description</h4>
  498. <p>This option is useful mainly from command line when invoking pisg with
  499. <code>--silent 1</code>. But it can also used in the configuration
  500. file. It will suppress all standard output from pisg. Error messages
  501. will still be sent.</p>
  502. <h4>Default</h4>
  503. <p>0 (disabled)</p>
  504. </section>
  505. <section class="option" id="CacheDir"><h3>CacheDir <span class="purpose">use a cache to speed up log parsing</span></h3>
  506. <pre>&lt;set CacheDir=&quot;pisg_cache&quot;&gt;
  507. &lt;set CacheDir=&quot;/path/to/pisg_cache&quot;&gt;</pre>
  508. <h4>Description</h4>
  509. <p>Setting this option makes pisg dump the results of log parsing into cache
  510. files. The next time pisg is run, it compares the timestamp of the log(s)
  511. with the timestamp stored in the cache file. When the log was not changed,
  512. the cached data is used. (This means that it does not work if you only
  513. have a single big logfile. Split the log at arbitrary points and use
  514. <a href="#LogDir">LogDir</a> or <a href="#Logfile">Logfile</a>=&quot;dir/*&quot;.)</p>
  515. <p>Note that the cache files should be deleted when the pisg config file is
  516. changed since the cache data uses the old config settings.
  517. <a href="#NickTracking">NickTracking</a> does not work especially well with the
  518. cache when using different <a href="#NFiles">NFiles</a> settings.</p>
  519. <h4>Default</h4>
  520. <p>Unset</p>
  521. </section>
  522. <section class="option" id="ChannelIndex"><h3>ChannelIndex <span class="purpose">name of the channel list file for a landing page</span></h3>
  523. <pre>&lt;set ChannelIndex=&quot;channels.json&quot;&gt;</pre>
  524. <h4>Description</h4>
  525. <p>Each time pisg writes a channel page, it also updates a small JSON file, next to
  526. that page, listing the channels found in the same directory: the channel name as
  527. written in the <a href="#Channel">Channel</a> setting, the page file name, the network, when
  528. it was updated, and the number of days, nicks and lines. A landing page can read this
  529. file to offer a drop-down list of channels (see <code>site/index.html</code>), so
  530. nothing has to scan or scrape the HTML pages. Each run only changes the entry of its
  531. own channel, and entries whose page no longer exists are removed. Set it to &quot;none&quot;
  532. to switch this off.</p>
  533. <h4>Default</h4>
  534. <p>channels.json</p>
  535. </section>
  536. <section class="option" id="HomeLink"><h3>HomeLink <span class="purpose">adds a button at the top of every stats page that leads back to your landing page</span></h3>
  537. <pre>&lt;set HomeLink=&quot;index.html&quot;&gt;</pre>
  538. <h4>Description</h4>
  539. <p>Shows an &quot;All channels&quot; button above the title of each stats page (translated with the
  540. page language). Give the page it should lead to: a file name next to the stats page, such as
  541. <code>index.html</code> (the landing page in <code>site/</code>), or a full
  542. http(s) address. Leave it empty, or &quot;none&quot;, for no button. Only the newer colour schemes
  543. draw it as a button; a scheme set to &quot;none&quot; does not show it.</p>
  544. <h4>Default</h4>
  545. <p>empty (no button)</p>
  546. </section>
  547. <section class="option" id="ShowNavBar"><h3>ShowNavBar <span class="purpose">enable/disable the section bar at the top of the page</span></h3>
  548. <pre>&lt;set ShowNavBar=&quot;1&quot;&gt;</pre>
  549. <h4>Description</h4>
  550. <p>Adds a slim bar at the top of the stats page that stays in view while scrolling. It shows which
  551. section is being read, and a &quot;Sections&quot; button opens a list of every section, laid out in columns so
  552. nothing has to be scrolled sideways, whatever the number of sections or the language. It also works
  553. without JavaScript. The bar is left out when <a href="#ColorScheme">ColorScheme</a> is &quot;none&quot;,
  554. since the page is then meant to be embedded in another one.</p>
  555. <h4>Default</h4>
  556. <p>1 (enabled)</p>
  557. </section>
  558. </section>
  559. <section class="chapter" id="reference-stats"><h2>4. Options for various statistics features</h2>
  560. <section class="option" id="DailyActivity"><h3>DailyActivity <span class="purpose">number of days to show in &quot;Daily Actitity&quot;</span></h3>
  561. <pre>&lt;channel=&quot;#channel&quot;&gt;
  562. Logfile = &quot;channel.log&quot;
  563. Format = &quot;xchat&quot;
  564. DailyActivity = &quot;0&quot;
  565. &lt;/channel&gt;
  566. &lt;set DailyActivity=&quot;31&quot;&gt;</pre>
  567. <h4>Description</h4>
  568. <p>This option sets the number of days to show in the &quot;Daily activity&quot;
  569. section. Pisg will generate a graph that shows the actitivy during
  570. this timeframe. Setting the option to 0 disables the section.</p>
  571. <h4>Default</h4>
  572. <p>0 (disabled)</p>
  573. </section>
  574. <section class="option" id="ShowActiveTimes"><h3>ShowActiveTimes <span class="purpose">enable/disable &quot;Most Active Times&quot;</span></h3>
  575. <pre>&lt;channel=&quot;#channel&quot;&gt;
  576. Logfile = &quot;channel.log&quot;
  577. Format = &quot;xchat&quot;
  578. ShowActiveTimes = &quot;0&quot;
  579. &lt;/channel&gt;
  580. &lt;set ShowActiveTimes=&quot;1&quot;&gt;</pre>
  581. <h4>Description</h4>
  582. <p>With this option you can disable the &quot;Most Active Times&quot; section on the
  583. stats page. It will simply disappear when specifying 0.</p>
  584. <h4>Default</h4>
  585. <p>1 (enabled)</p>
  586. </section>
  587. <section class="option" id="ShowActiveNicks"><h3>ShowActiveNicks <span class="purpose">enable/disable &quot;Most Active Nicks&quot;</span></h3>
  588. <pre>&lt;channel=&quot;#channel&quot;&gt;
  589. Logfile = &quot;channel.log&quot;
  590. Format = &quot;xchat&quot;
  591. ShowActiveNicks = &quot;0&quot;
  592. &lt;/channel&gt;
  593. &lt;set ShowActiveNicks=&quot;1&quot;&gt;</pre>
  594. <h4>Description</h4>
  595. <p>With this option you can disable the &quot;Most Active Nicks&quot; section on the
  596. stats page.</p>
  597. <h4>Default</h4>
  598. <p>1 (enabled)</p>
  599. </section>
  600. <section class="option" id="ShowBigNumbers"><h3>ShowBigNumbers <span class="purpose">enable/disable &quot;Big Numbers&quot; sections</span></h3>
  601. <pre>&lt;channel=&quot;#channel&quot;&gt;
  602. Logfile = &quot;channel.log&quot;
  603. Format = &quot;xchat&quot;
  604. ShowBigNumbers = &quot;0&quot;
  605. &lt;/channel&gt;
  606. &lt;set ShowBigNumbers=&quot;1&quot;&gt;</pre>
  607. <h4>Description</h4>
  608. <p>With this option you can disable the &quot;Big Numbers&quot; and &quot;Other
  609. Interesting numbers&quot; sections on the stats page. They will simply
  610. disappear when specifying 0.</p>
  611. <h4>Default</h4>
  612. <p>1 (enabled)</p>
  613. </section>
  614. <section class="option" id="ShowTopics"><h3>ShowTopics <span class="purpose">enable/disable &quot;Latest topics&quot; sections</span></h3>
  615. <pre>&lt;channel=&quot;#channel&quot;&gt;
  616. Logfile = &quot;channel.log&quot;
  617. Format = &quot;xchat&quot;
  618. ShowTopics = &quot;0&quot;
  619. &lt;/channel&gt;
  620. &lt;set ShowTopics=&quot;1&quot;&gt;</pre>
  621. <h4>Description</h4>
  622. <p>With this option you can disable the &quot;Latest topics&quot; section on the
  623. stats page. It will simply disappear when specifying 0.</p>
  624. <h4>Default</h4>
  625. <p>1 (enabled)</p>
  626. </section>
  627. <section class="option" id="ShowLines"><h3>ShowLines <span class="purpose">enable/disable &quot;number of lines&quot;</span></h3>
  628. <pre>&lt;channel=&quot;#channel&quot;&gt;
  629. Logfile = &quot;channel.log&quot;
  630. Format = &quot;xchat&quot;
  631. ShowLines = &quot;0&quot;
  632. &lt;/channel&gt;
  633. &lt;set ShowLines=&quot;1&quot;&gt;</pre>
  634. <h4>Description</h4>
  635. <p>The default behaviour is to add a column to the &quot;Most Active Nicks&quot;
  636. section displaying the number of lines a user wrote. With this option it
  637. can be disabled.</p>
  638. <h4>Default</h4>
  639. <p>1 (enabled)</p>
  640. </section>
  641. <section class="option" id="ShowWpl"><h3>ShowWpl <span class="purpose">enable/disable &quot;words per line&quot;</span></h3>
  642. <pre>&lt;channel=&quot;#channel&quot;&gt;
  643. Logfile = &quot;channel.log&quot;
  644. Format = &quot;xchat&quot;
  645. ShowWpl = &quot;0&quot;
  646. &lt;/channel&gt;
  647. &lt;set ShowWpl=&quot;1&quot;&gt;</pre>
  648. <h4>Description</h4>
  649. <p>With this option you can enable the &quot;words per line&quot; column in the
  650. &quot;Most Active Nicks&quot; section. It will add a column describing the average
  651. words per line for a person.</p>
  652. <h4>Default</h4>
  653. <p>0 (disabled)</p>
  654. </section>
  655. <section class="option" id="ShowCpl"><h3>ShowCpl <span class="purpose">enable/disable &quot;characters per line&quot;</span></h3>
  656. <pre>&lt;channel=&quot;#channel&quot;&gt;
  657. Logfile = &quot;channel.log&quot;
  658. Format = &quot;xchat&quot;
  659. ShowCpl = &quot;0&quot;
  660. &lt;/channel&gt;
  661. &lt;set ShowCpl=&quot;1&quot;&gt;</pre>
  662. <h4>Description</h4>
  663. <p>With this option you can enable the &quot;characters per line&quot; column in the
  664. &quot;Most Active Nicks&quot; section. It will add a column describing the average
  665. number of characters per line for a person.</p>
  666. <h4>Default</h4>
  667. <p>0 (disabled)</p>
  668. </section>
  669. <section class="option" id="ShowWords"><h3>ShowWords <span class="purpose">enable/disable &quot;number of words&quot;</span></h3>
  670. <pre>&lt;channel=&quot;#channel&quot;&gt;
  671. Logfile = &quot;channel.log&quot;
  672. Format = &quot;xchat&quot;
  673. ShowWords = &quot;0&quot;
  674. &lt;/channel&gt;
  675. &lt;set ShowWords=&quot;1&quot;&gt;</pre>
  676. <h4>Description</h4>
  677. <p>The <code>ShowWords</code> option adds a column to the &quot;Most
  678. Active Nicks&quot; list which list the total number of words a user has
  679. typed.</p>
  680. <h4>Default</h4>
  681. <p>0 (disabled)</p>
  682. </section>
  683. <section class="option" id="ShowLastSeen"><h3>ShowLastSeen <span class="purpose">show when a user was last seen on a channel</span></h3>
  684. <pre>&lt;channel=&quot;#channel&quot;&gt;
  685. Logfile = &quot;channel.log&quot;
  686. Format = &quot;xchat&quot;
  687. ShowLastSeen = &quot;0&quot;
  688. &lt;/channel&gt;
  689. &lt;set ShowLastSeen=&quot;1&quot;&gt;</pre>
  690. <h4>Description</h4>
  691. <p>With this option enabled, a column will be added to the &quot;Most Active
  692. Nicks&quot; section to display when a user was last seen. E.g. &quot;2 days ago&quot;.</p>
  693. <h4>Default</h4>
  694. <p>1 (enabled)</p>
  695. </section>
  696. <section class="option" id="ShowTime"><h3>ShowTime <span class="purpose">show when a nick was active</span></h3>
  697. <pre>&lt;channel=&quot;#channel&quot;&gt;
  698. Logfile = &quot;channel.log&quot;
  699. Format = &quot;xchat&quot;
  700. ShowTime = &quot;0&quot;
  701. &lt;/channel&gt;
  702. &lt;set ShowTime=&quot;1&quot;&gt;</pre>
  703. <h4>Description</h4>
  704. <p>The default behaviour is to add a column to the &quot;Most Active Nicks&quot;
  705. section displaying a fancy time bar to show when a user was active. With
  706. this option it can be disabled.</p>
  707. <h4>Default</h4>
  708. <p>1 (enabled)</p>
  709. </section>
  710. <section class="option" id="ShowLineTime"><h3>ShowLineTime <span class="purpose">mIRCStats like behaviour of time bar</span></h3>
  711. <pre>&lt;channel=&quot;#channel&quot;&gt;
  712. Logfile = &quot;channel.log&quot;
  713. Format = &quot;bobot&quot;
  714. ShowLineTime = &quot;0&quot;
  715. &lt;/channel&gt;
  716. &lt;set ShowLineTime=&quot;1&quot;&gt;</pre>
  717. <h4>Description</h4>
  718. <p>The default behaviour is to add a column to the &quot;Most Active Nicks&quot;
  719. section displaying a fancy time bar to show when a user was active.
  720. With this option it can be done the same way as mIRCStats does it; that
  721. is, by putting that time bar next to the number of lines, in the same
  722. column.</p>
  723. <h4>Default</h4>
  724. <p>0 (disabled)</p>
  725. </section>
  726. <section class="option" id="ShowWordTime"><h3>ShowWordTime <span class="purpose">ShowLineTime like behavior of words column</span></h3>
  727. <pre>&lt;channel=&quot;#channel&quot;&gt;
  728. Logfile = &quot;channel.log&quot;
  729. Format = &quot;bobot&quot;
  730. ShowWordTime = &quot;0&quot;
  731. &lt;/channel&gt;
  732. &lt;set ShowWordTime=&quot;1&quot;&gt;</pre>
  733. <h4>Description</h4>
  734. <p>The default behaviour is to add a column to the &quot;Most Active Nicks&quot;
  735. section displaying a fancy time bar to show when a user was active.
  736. With this option it can be done similarly to mIRCStats does it and like
  737. the ShowLineTime option, but using words instead of lines; that is, by
  738. putting that time bar next to the number of words, in the same column.</p>
  739. <h4>Default</h4>
  740. <p>0 (disabled)</p>
  741. </section>
  742. <section class="option" id="ShowRandQuote"><h3>ShowRandQuote <span class="purpose">enable or disable the random quotes</span></h3>
  743. <pre>&lt;channel=&quot;#channel&quot;&gt;
  744. Logfile = &quot;channel.log&quot;
  745. Format = &quot;bobot&quot;
  746. ShowRandQuote = &quot;0&quot;
  747. &lt;/channel&gt;
  748. &lt;set ShowRandQuote=&quot;1&quot;&gt;</pre>
  749. <h4>Description</h4>
  750. <p>The default behaviour is to add a column to the &quot;Most Active Nicks&quot;
  751. section displaying a users random quote. With this option it can be
  752. disabled.</p>
  753. <h4>Default</h4>
  754. <p>1 (enabled)</p>
  755. </section>
  756. <section class="option" id="ShowLegend"><h3>ShowLegend <span class="purpose">enable or disable the legend of the time bars</span></h3>
  757. <pre>&lt;channel=&quot;#channel&quot;&gt;
  758. Logfile = &quot;channel.log&quot;
  759. Format = &quot;bobot&quot;
  760. ShowLegend = &quot;0&quot;
  761. &lt;/channel&gt;
  762. &lt;set ShowLegend=&quot;1&quot;&gt;</pre>
  763. <h4>Description</h4>
  764. <p>By default, pisg shows a legend below the &quot;Most Active Times&quot; displaying
  765. what the different colors means. With this option it can be disabled.</p>
  766. <h4>Default</h4>
  767. <p>1 (enabled)</p>
  768. </section>
  769. <section class="option" id="ShowKickLine"><h3>ShowKickLine <span class="purpose">enable or disable the kick line</span></h3>
  770. <pre>&lt;channel=&quot;#channel&quot;&gt;
  771. Logfile = &quot;channel.log&quot;
  772. Format = &quot;bobot&quot;
  773. ShowKickLine = &quot;0&quot;
  774. &lt;/channel&gt;
  775. &lt;set ShowKickLine=&quot;1&quot;&gt;</pre>
  776. <h4>Description</h4>
  777. <p>By default, pisg shows an example kick line in the &quot;Most kicked&quot;-stats.
  778. With this option it can be disabled.</p>
  779. <h4>Default</h4>
  780. <p>1 (enabled)</p>
  781. </section>
  782. <section class="option" id="ShowActionLine"><h3>ShowActionLine <span class="purpose">enable or disable the action line</span></h3>
  783. <pre>&lt;channel=&quot;#channel&quot;&gt;
  784. Logfile = &quot;channel.log&quot;
  785. Format = &quot;bobot&quot;
  786. ShowActionLine = &quot;0&quot;
  787. &lt;/channel&gt;
  788. &lt;set ShowActionLine=&quot;1&quot;&gt;</pre>
  789. <h4>Description</h4>
  790. <p>By default, pisg shows an example action line in the &quot;Most actions&quot;-stats.
  791. With this option it can be disabled.</p>
  792. <h4>Default</h4>
  793. <p>1 (enabled)</p>
  794. </section>
  795. <section class="option" id="ShowShoutLine"><h3>ShowShoutLine <span class="purpose">enable or disable the shout line</span></h3>
  796. <pre>&lt;channel=&quot;#channel&quot;&gt;
  797. Logfile = &quot;channel.log&quot;
  798. Format = &quot;bobot&quot;
  799. ShowShoutLine = &quot;0&quot;
  800. &lt;/channel&gt;
  801. &lt;set ShowShoutLine=&quot;1&quot;&gt;</pre>
  802. <h4>Description</h4>
  803. <p>By default, pisg shows an example shout line in the &quot;Most shouting
  804. people&quot;-stats. With this option it can be disabled.</p>
  805. <h4>Default</h4>
  806. <p>1 (enabled)</p>
  807. </section>
  808. <section class="option" id="ShowFoulDecimals"><h3>ShowFoulDecimals <span class="purpose">set how many decimals to show</span></h3>
  809. <pre>&lt;channel=&quot;#channel&quot;&gt;
  810. Logfile = &quot;channel.log&quot;
  811. Format = &quot;bobot&quot;
  812. ShowFoulDecimals = &quot;2&quot;
  813. &lt;/channel&gt;
  814. &lt;set ShowFoulDecimals=&quot;1&quot;&gt;</pre>
  815. <h4>Description</h4>
  816. <p>By default, pisg uses 1 decimal. With this option you could change
  817. it to whatever you like. Negative is treated as the default value.</p>
  818. <h4>Default</h4>
  819. <p>1 decimal</p>
  820. </section>
  821. <section class="option" id="ShowFoulLine"><h3>ShowFoulLine <span class="purpose">enable or disable the foul line</span></h3>
  822. <pre>&lt;channel=&quot;#channel&quot;&gt;
  823. Logfile = &quot;channel.log&quot;
  824. Format = &quot;bobot&quot;
  825. ShowFoulLine = &quot;0&quot;
  826. &lt;/channel&gt;
  827. &lt;set ShowFoulLine=&quot;1&quot;&gt;</pre>
  828. <h4>Description</h4>
  829. <p>By default, pisg doesn&#x27;t show an example foul line in the &quot;Most
  830. fouls&quot;-stats. With this option it can be enabled.</p>
  831. <h4>Default</h4>
  832. <p>0 (disabled)</p>
  833. </section>
  834. <section class="option" id="ShowViolentLines"><h3>ShowViolentLines <span class="purpose">enable or disable the violent lines</span></h3>
  835. <pre>&lt;channel=&quot;#channel&quot;&gt;
  836. Logfile = &quot;channel.log&quot;
  837. Format = &quot;bobot&quot;
  838. ShowViolentLines = &quot;0&quot;
  839. &lt;/channel&gt;
  840. &lt;set ShowViolentLines=&quot;1&quot;&gt;</pre>
  841. <h4>Description</h4>
  842. <p>By default, pisg shows example violent lines in the &quot;Most aggressive&quot;
  843. and &quot;Most attacked&quot;-stats. With this option it can be disabled.</p>
  844. <h4>Default</h4>
  845. <p>1 (enabled)</p>
  846. </section>
  847. <section class="option" id="ShowMuw"><h3>ShowMuw <span class="purpose">enable or disable &quot;Most used words&quot;</span></h3>
  848. <pre>&lt;channel=&quot;#channel&quot;&gt;
  849. Logfile = &quot;channel.log&quot;
  850. Format = &quot;xchat&quot;
  851. ShowMuw = &quot;0&quot;
  852. &lt;/channel&gt;
  853. &lt;set ShowMuw=&quot;1&quot;&gt;</pre>
  854. <h4>Description</h4>
  855. <p>By default, pisg adds an &quot;Most used words&quot; section to the stats page.
  856. With this option you can disable it from being shown.
  857. See also <a href="#WordHistory">WordHistory</a>.</p>
  858. <h4>Default</h4>
  859. <p>1 (enabled)</p>
  860. </section>
  861. <section class="option" id="ShowMrn"><h3>ShowMrn <span class="purpose">enable or disable &quot;Most referenced nicks&quot;</span></h3>
  862. <pre>&lt;channel=&quot;#channel&quot;&gt;
  863. Logfile = &quot;channel.log&quot;
  864. Format = &quot;xchat&quot;
  865. ShowMrn = &quot;0&quot;
  866. &lt;/channel&gt;
  867. &lt;set ShowMrn=&quot;1&quot;&gt;</pre>
  868. <h4>Description</h4>
  869. <p>By default, pisg adds an &quot;Most referenced nicks&quot; section to the stats
  870. page. With this option you can disable it from being shown.
  871. See also <a href="#NickHistory">NickHistory</a>.</p>
  872. <h4>Default</h4>
  873. <p>1 (enabled)</p>
  874. </section>
  875. <section class="option" id="ShowMru"><h3>ShowMru <span class="purpose">enable or disable &quot;Most referenced URLs&quot;</span></h3>
  876. <pre>&lt;channel=&quot;#channel&quot;&gt;
  877. Logfile = &quot;channel.log&quot;
  878. Format = &quot;xchat&quot;
  879. ShowMru = &quot;0&quot;
  880. &lt;/channel&gt;
  881. &lt;set ShowMru=&quot;1&quot;&gt;</pre>
  882. <h4>Description</h4>
  883. <p>By default, pisg adds an &quot;Most referenced URLs&quot; section to the stats
  884. page. With this option you can disable it from being shown.
  885. See also <a href="#UrlHistory">UrlHistory</a>.</p>
  886. <h4>Default</h4>
  887. <p>1 (enabled)</p>
  888. </section>
  889. <section class="option" id="ShowCharts"><h3>ShowCharts <span class="purpose">enable or disable channel music charts</span></h3>
  890. <pre>&lt;channel=&quot;#channel&quot;&gt;
  891. Logfile = &quot;channel.log&quot;
  892. Format = &quot;xchat&quot;
  893. ShowCharts = &quot;0&quot;
  894. &lt;/channel&gt;
  895. &lt;set ShowCharts=&quot;1&quot;&gt;</pre>
  896. <h4>Description</h4>
  897. <p>With this option set, pisg creates a chart listing of the top songs played
  898. on the channel. See also <a href="#ChartsHistory">ChartsHistory</a> and
  899. <a href="#ChartsRegexp">ChartsRegexp</a>.</p>
  900. <h4>Default</h4>
  901. <p>0 (disabled)</p>
  902. </section>
  903. <section class="option" id="ShowOps"><h3>ShowOps <span class="purpose">enable or disable op statistics</span></h3>
  904. <pre>&lt;channel=&quot;#channel&quot;&gt;
  905. Logfile = &quot;channel.log&quot;
  906. Format = &quot;xchat&quot;
  907. ShowOps = &quot;0&quot;
  908. &lt;/channel&gt;
  909. &lt;set ShowOps=&quot;0&quot;&gt;</pre>
  910. <h4>Description</h4>
  911. <p>By default, pisg has op statistics in the &quot;Most interesting numbers&quot;
  912. section. Here you can disable the feature, it&#x27;s useful if you don&#x27;t feel
  913. that the information is of any value, or your log format doesn&#x27;t support
  914. ops/deops.</p>
  915. <h4>Default</h4>
  916. <p>1 (enabled)</p>
  917. </section>
  918. <section class="option" id="ShowVoices"><h3>ShowVoices <span class="purpose">enable or disable voice statistics</span></h3>
  919. <pre>&lt;channel=&quot;#channel&quot;&gt;
  920. Logfile = &quot;channel.log&quot;
  921. Format = &quot;xchat&quot;
  922. ShowVoices = &quot;0&quot;
  923. &lt;/channel&gt;
  924. &lt;set ShowVoices=&quot;1&quot;&gt;</pre>
  925. <h4>Description</h4>
  926. <p>By default, pisg doesn&#x27;t have voice statistics like it has op
  927. statistics. Enabling this option will add a section to the &quot;Most
  928. interesting numbers&quot; displaying who got most voices.</p>
  929. <h4>Default</h4>
  930. <p>0 (disabled)</p>
  931. </section>
  932. <section class="option" id="ShowHalfops"><h3>ShowHalfops <span class="purpose">enable or disable halfop statistics</span></h3>
  933. <pre>&lt;channel=&quot;#channel&quot;&gt;
  934. Logfile = &quot;channel.log&quot;
  935. Format = &quot;xchat&quot;
  936. ShowHalfops = &quot;0&quot;
  937. &lt;/channel&gt;
  938. &lt;set ShowHalfops=&quot;1&quot;&gt;</pre>
  939. <h4>Description</h4>
  940. <p>By default, pisg doesn&#x27;t have halfop statistics (+h on some servers)
  941. like it has op statistics. Enabling this option will add a section to
  942. the &quot;Most interesting numbers&quot; displaying who gave most half-ops.</p>
  943. <h4>Default</h4>
  944. <p>0 (disabled)</p>
  945. </section>
  946. <section class="option" id="ShowMostNicks"><h3>ShowMostNicks <span class="purpose">show who changed nick most often</span></h3>
  947. <pre>&lt;channel=&quot;#channel&quot;&gt;
  948. Logfile = &quot;channel.log&quot;
  949. Format = &quot;xchat&quot;
  950. ShowMostNicks = &quot;0&quot;
  951. &lt;/channel&gt;
  952. &lt;set ShowMostNicks=&quot;1&quot;&gt;</pre>
  953. <h4>Description</h4>
  954. <p>By enabling this option, pisg will add a section to the stats showing
  955. who had the most nicks, and what the nicks were. This option only works
  956. properly when <a href="#NickTracking">NickTracking</a> is enabled or
  957. <a href="#user-options">user aliases</a> have been defined.
  958. See also <a href="#MostNicksHistory">MostNicksHistory</a>,
  959. <a href="#MostNicksVerbose">MostNicksVerbose</a>, and
  960. <a href="#NickLimit">NickLimit</a>.</p>
  961. <h4>Default</h4>
  962. <p>0 (disabled)</p>
  963. </section>
  964. <section class="option" id="ShowActiveGenders"><h3>ShowActiveGenders <span class="purpose">show stats on which gender talked most</span></h3>
  965. <pre>&lt;channel=&quot;#channel&quot;&gt;
  966. Logfile = &quot;channel.log&quot;
  967. Format = &quot;xchat&quot;
  968. ShowActiveGenders = &quot;0&quot;
  969. &lt;/channel&gt;
  970. &lt;set ShowActiveGenders=&quot;1&quot;&gt;</pre>
  971. <h4>Description</h4>
  972. <p>Setting this option will make pisg create statistics on which gender
  973. (female/male/bot) talked most (see the &quot;sex&quot; option in <a href="#user-options">Specifying user options</a>). See also <a href="#NickLimit">NickLimit</a>.</p>
  974. <h4>Default</h4>
  975. <p>0 (disabled)</p>
  976. </section>
  977. <section class="option" id="ShowSmileys"><h3>ShowSmileys <span class="purpose">show most used smileys</span></h3>
  978. <pre>&lt;channel=&quot;#channel&quot;&gt;
  979. Logfile = &quot;channel.log&quot;
  980. Format = &quot;xchat&quot;
  981. ShowSmileys = &quot;0&quot;
  982. &lt;/channel&gt;
  983. &lt;set ShowSmileys=&quot;1&quot;&gt;</pre>
  984. <h4>Description</h4>
  985. <p>With this option, pisg will make a list of the most used smileys in the
  986. channel. See also <a href="#SmileyHistory">SmileyHistory</a>.</p>
  987. <h4>Default</h4>
  988. <p>0 (disabled)</p>
  989. </section>
  990. <section class="option" id="ShowKarma"><h3>ShowKarma <span class="purpose">show channel karma</span></h3>
  991. <pre>&lt;channel=&quot;#channel&quot;&gt;
  992. Logfile = &quot;channel.log&quot;
  993. Format = &quot;xchat&quot;
  994. ShowKarma = &quot;0&quot;
  995. &lt;/channel&gt;
  996. &lt;set ShowKarma=&quot;1&quot;&gt;</pre>
  997. <h4>Description</h4>
  998. <p>With this option, pisg will analyze the channel karma. Users can give other
  999. users (or things) good or bad karma by saying &quot;nickname++&quot; or &quot;nickname--&quot;;
  1000. &quot;nickname==&quot; resets it to zero. Only the last karma is remembered per
  1001. nick/nick combination, so there is at most +- 1 karma point.
  1002. See also <a href="#KarmaHistory">KarmaHistory</a> and <a href="#NickLimit">NickLimit</a>.</p>
  1003. <h4>Default</h4>
  1004. <p>0 (disabled)</p>
  1005. </section>
  1006. <section class="option" id="ShowMostActiveByHour"><h3>ShowMostActiveByHour <span class="purpose">show most active nicks by hour</span></h3>
  1007. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1008. Logfile = &quot;channel.log&quot;
  1009. Format = &quot;xchat&quot;
  1010. ShowMostActiveByHour = &quot;0&quot;
  1011. &lt;/channel&gt;
  1012. &lt;set ShowMostActiveByHour=&quot;1&quot;&gt;</pre>
  1013. <h4>Description</h4>
  1014. <p>By enabling this option, pisg will add a section to the stats showing
  1015. &quot;Most Active Nicks By Hour&quot; - also look at the
  1016. <a href="#ShowMostActiveByHourGraph">ShowMostActiveByHourGraph</a> and
  1017. <a href="#ActiveNicksByHour">ActiveNicksByHour</a> settings.</p>
  1018. <h4>Default</h4>
  1019. <p>0 (disabled)</p>
  1020. </section>
  1021. <section class="option" id="ShowOnlyTop"><h3>ShowOnlyTop <span class="purpose">only count stats for top talkers, ignore less-active users</span></h3>
  1022. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1023. Logfile = &quot;channel.log&quot;
  1024. Format = &quot;xchat&quot;
  1025. ShowOnlyTop = &quot;1&quot;
  1026. &lt;/channel&gt;
  1027. &lt;set ShowOnlyTop=&quot;1&quot;&gt;</pre>
  1028. <h4>Description</h4>
  1029. <p>By enabling this option, stats in the &quot;Big Numbers&quot; and &quot;Interesting
  1030. Numbers&quot; section will only be counted for users who were the most
  1031. active. E.g. users who appear in the &quot;Most Active Nicks&quot; section, as
  1032. respected by the <a href="#ActiveNicks">ActiveNicks</a> and
  1033. <a href="#ActiveNicks2">ActiveNicks2</a> options. See also
  1034. <a href="#BigNumbersThreshold">BigNumbersThreshold</a>.</p>
  1035. <h4>Default</h4>
  1036. <p>0 (disabled)</p>
  1037. </section>
  1038. <section class="option" id="ShowMostActiveByHourGraph"><h3>ShowMostActiveByHourGraph <span class="purpose">show graphs in most active nicks by hour</span></h3>
  1039. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1040. Logfile = &quot;channel.log&quot;
  1041. Format = &quot;xchat&quot;
  1042. ShowMostActiveByHourGraph = &quot;0&quot;
  1043. &lt;/channel&gt;
  1044. &lt;set ShowMostActiveByHour=&quot;1&quot;&gt;
  1045. &lt;set ShowMostActiveByHourGraph=&quot;1&quot;&gt;</pre>
  1046. <h4>Description</h4>
  1047. <p>By enabling this option and the <a href="#ShowMostActiveByHour">ShowMostActiveByHour</a>
  1048. option, pisg will show graphs in the &quot;Most Active Nicks By Hour&quot;
  1049. section.</p>
  1050. <h4>Default</h4>
  1051. <p>1 (enabled)</p>
  1052. </section>
  1053. <section class="option" id="ShowOverview"><h3>ShowOverview <span class="purpose">enable/disable the channel overview</span></h3>
  1054. <pre>&lt;set ShowOverview=&quot;1&quot;&gt;</pre>
  1055. <h4>Description</h4>
  1056. <p>Shows a row of key numbers at the top of the page: lines, words, nicks, days covered, lines
  1057. per day, the busiest and quietest hour, questions, links shared, the top talker and the
  1058. number of joins and kicks.</p>
  1059. <h4>Default</h4>
  1060. <p>1 (enabled)</p>
  1061. </section>
  1062. <section class="option" id="ShowRelations"><h3>ShowRelations <span class="purpose">enable/disable the relation map and its tables</span></h3>
  1063. <pre>&lt;set ShowRelations=&quot;1&quot;&gt;</pre>
  1064. <h4>Description</h4>
  1065. <p>Shows who talks to whom: an interactive map (click a nick or a line for details), a table of
  1066. the closest pairs, and the &quot;social roles&quot; (who is talked to the most, the best listener, ...).
  1067. Two people are connected when one starts a line with the other&#x27;s nick (&quot;Bob: hi&quot;), mentions
  1068. them, or answers right after them. A line addressed to someone counts three times as much as
  1069. a mention or a quick reply. Nicks that are joined by <a href="#NickTracking">NickTracking</a> or a user alias
  1070. count as one person. Bots are left out: mark a bot with &lt;user nick=&quot;Bot&quot; sex=&quot;b&quot;&gt; to keep it in the
  1071. other statistics but off the map, or with ignore=&quot;y&quot; to remove it altogether. Nicks that are also
  1072. ordinary words (and the channel name) are not counted as mentions.
  1073. See also <a href="#RelationNicks">RelationNicks</a> and <a href="#RelationMinWeight">RelationMinWeight</a>.</p>
  1074. <h4>Default</h4>
  1075. <p>1 (enabled)</p>
  1076. </section>
  1077. <section class="option" id="RelationNicks"><h3>RelationNicks <span class="purpose">number of nicks on the relation map</span></h3>
  1078. <pre>&lt;set RelationNicks=&quot;30&quot;&gt;</pre>
  1079. <h4>Description</h4>
  1080. <p>The map shows this many of the most active people (bots excluded). More than about 40 makes
  1081. the picture crowded.</p>
  1082. <h4>Default</h4>
  1083. <p>30</p>
  1084. </section>
  1085. <section class="option" id="RelationMinWeight"><h3>RelationMinWeight <span class="purpose">minimum connection strength shown as a line on the relation map</span></h3>
  1086. <pre>&lt;set RelationMinWeight=&quot;3&quot;&gt;</pre>
  1087. <h4>Description</h4>
  1088. <p>Connections weaker than this are not drawn, which keeps the map readable. A line addressed to
  1089. someone is worth 3, a mention 1 and a quick reply 1. Raise it for a busy channel, lower it for a quiet one.</p>
  1090. <h4>Default</h4>
  1091. <p>3</p>
  1092. </section>
  1093. <section class="option" id="ShowTimePersonalities"><h3>ShowTimePersonalities <span class="purpose">enable/disable the time personalities section</span></h3>
  1094. <pre>&lt;set ShowTimePersonalities=&quot;1&quot;&gt;</pre>
  1095. <h4>Description</h4>
  1096. <p>Shows who chats mostly at night (0-5h), in the morning (6-11h), in the afternoon (12-17h) and
  1097. in the evening (18-23h), for the people with enough lines. The hours follow <a href="#TimeOffset">TimeOffset</a>.</p>
  1098. <h4>Default</h4>
  1099. <p>1 (enabled)</p>
  1100. </section>
  1101. <section class="option" id="ShowConcentration"><h3>ShowConcentration <span class="purpose">enable/disable the &quot;who carries the channel&quot; section</span></h3>
  1102. <pre>&lt;set ShowConcentration=&quot;1&quot;&gt;</pre>
  1103. <h4>Description</h4>
  1104. <p>Shows how much of the channel the busiest people write: the share of all lines written by the
  1105. top 1, 3, 5, 10 and 20 nicks, and how many nicks wrote half of everything.</p>
  1106. <h4>Default</h4>
  1107. <p>1 (enabled)</p>
  1108. </section>
  1109. <section class="option" id="ShowSignatureWords"><h3>ShowSignatureWords <span class="purpose">enable/disable the signature words section</span></h3>
  1110. <pre>&lt;set ShowSignatureWords=&quot;1&quot;&gt;</pre>
  1111. <h4>Description</h4>
  1112. <p>Shows, for each of the regular talkers, the word they use a lot and that hardly anyone else uses.
  1113. Short words, nicks and links are ignored (see <a href="#WordLength">WordLength</a> and <a href="#IgnoreWords">IgnoreWords</a>).</p>
  1114. <h4>Default</h4>
  1115. <p>1 (enabled)</p>
  1116. </section>
  1117. <section class="option" id="IgnoreWords"><h3>IgnoreWords <span class="purpose">ignore specified words</span></h3>
  1118. <pre>&lt;set IgnoreWords=&quot;there about&quot;&gt;</pre>
  1119. <h4>Description</h4>
  1120. <p>Sometimes words in the &quot;most used words&quot; appears which you don&#x27;t want to
  1121. see, with this option you can ignore these words. It also applies to the
  1122. &quot;most referenced nicks&quot; section. It&#x27;s a space separated list of words.
  1123. You can use * like in nick aliases.
  1124. Can not be used in a channel-only context.</p>
  1125. <h4>Default</h4>
  1126. <p>unset</p>
  1127. </section>
  1128. <section class="option" id="NoIgnoredQuotes"><h3>NoIgnoredQuotes <span class="purpose">Control random quote output</span></h3>
  1129. <pre>&lt;set NoIgnoredQuotes=&quot;1&quot;&gt;</pre>
  1130. <h4>Description</h4>
  1131. <p>When set to &quot;1&quot;, pisg will not output quotes containing ignored words.
  1132. Pisg will output a blank line after trying 20 random quotes if all 20 random quotes were ignored.</p>
  1133. <h4>Default</h4>
  1134. <p>0</p>
  1135. </section>
  1136. <section class="option" id="FoulWords"><h3>FoulWords <span class="purpose">specify words considered to be bad/FoulWords language</span></h3>
  1137. <pre>&lt;set FoulWords=&quot;ass fuck bitch&quot;&gt;</pre>
  1138. <h4>Description</h4>
  1139. <p>There is a section in the &quot;Most interesting numbers&quot; which tells who had
  1140. a &quot;dirty mouth&quot; - here you can define which words are considered being
  1141. bad/foul. It is a space separated list of words.
  1142. You can use * like in nick aliases.
  1143. Can not be used in a channel-only context.</p>
  1144. <h4>Default</h4>
  1145. <p>ass fuck bitch shit scheisse kacke arsch ficker ficken schlampe</p>
  1146. </section>
  1147. <section class="option" id="ViolentWords"><h3>ViolentWords <span class="purpose">specify words considered to be aggressive/violent</span></h3>
  1148. <pre>&lt;set ViolentWords=&quot;slaps beats kick&quot;&gt;</pre>
  1149. <h4>Description</h4>
  1150. <p>There is a section in the &quot;Most interesting numbers&quot; which tells who is
  1151. most &quot;aggressive&quot; - here you can define which words are considered being
  1152. &quot;violent&quot;. It is a space separated list of words. You can use * like in
  1153. nick aliases. Can not be used in a channel-only context.</p>
  1154. <h4>Default</h4>
  1155. <p>slaps beats smacks</p>
  1156. </section>
  1157. <section class="option" id="BadUrls"><h3>BadUrls <span class="purpose">words that keep a URL out of the URL statistics</span></h3>
  1158. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1159. Logfile = &quot;channel.log&quot;
  1160. Format = &quot;xchat&quot;
  1161. BadUrls = &quot;imagetwist imgur.com postimg.cc/*&quot;
  1162. &lt;/channel&gt;
  1163. &lt;set BadUrls=&quot;imagetwist imgur.com postimg.cc/*&quot;&gt;</pre>
  1164. <h4>Description</h4>
  1165. <p>BadUrls is a list of words, separated by spaces, much like <a href="#FoulWords">FoulWords</a>.
  1166. A URL that contains any of the words is not counted, so it never shows up in
  1167. &quot;Most referenced URLs&quot; (see <a href="#ShowMru">ShowMru</a>). Use it to keep spam and
  1168. unwanted image hosts out of the statistics.
  1169. A word matches anywhere in the URL, whatever the case, so &quot;imgur.com&quot; also
  1170. removes &quot;https://i.imgur.com/abc.png&quot;. Two wildcards are understood: * stands for
  1171. any run of characters and ? for exactly one character. So &quot;postimg.cc/*&quot; removes
  1172. every link to postimg.cc (including &quot;i.postimg.cc/x.png&quot;) but not
  1173. &quot;example.org/postimg.cc&quot;, where nothing follows the name, and &quot;*.example.org/*&quot;
  1174. removes links on any subdomain of example.org but not on example.org itself.
  1175. Apart from the wildcards the words are plain text, not regular expressions, so
  1176. characters such as . + ( ) [ ] | mean exactly themselves. A lone * would remove every
  1177. URL. To hide a single exact address instead, use the
  1178. <a href="#ignoring-links">link ignore</a> setting.</p>
  1179. <h4>Default</h4>
  1180. <p>unset (no URLs are removed)</p>
  1181. </section>
  1182. <section class="option" id="MinQuote"><h3>MinQuote <span class="purpose">minimum numbers of letters for a random quote</span></h3>
  1183. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1184. Logfile = &quot;channel.log&quot;
  1185. Format = &quot;xchat&quot;
  1186. MinQuote = &quot;10&quot;
  1187. &lt;/channel&gt;
  1188. &lt;set MinQuote=&quot;5&quot;&gt;</pre>
  1189. <h4>Description</h4>
  1190. <p>The random quotes displayed in the &quot;Most Active Nicks&quot; section will be
  1191. picked from a length range. With this option you can change the minimum
  1192. number of letters required for a random quote. Also see the
  1193. <a href="#MaxQuote">MaxQuote</a> option. Note that pisg will still choose a
  1194. short quote if it cannot find a longer one.</p>
  1195. <h4>Default</h4>
  1196. <p>25</p>
  1197. </section>
  1198. <section class="option" id="MaxQuote"><h3>MaxQuote <span class="purpose">maximum numbers of letters for a random quote</span></h3>
  1199. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1200. Logfile = &quot;channel.log&quot;
  1201. Format = &quot;xchat&quot;
  1202. MaxQuote = &quot;70&quot;
  1203. &lt;/channel&gt;
  1204. &lt;set MaxQuote=&quot;100&quot;&gt;</pre>
  1205. <h4>Description</h4>
  1206. <p>The random quotes displayed in the &quot;Most Active Nicks&quot; section will be
  1207. picked from a length range. With this option you can change the maximum
  1208. number of letters required for a random quote. Also see the
  1209. <a href="#MinQuote">MinQuote</a> option.</p>
  1210. <h4>Default</h4>
  1211. <p>65</p>
  1212. </section>
  1213. <section class="option" id="WordLength"><h3>WordLength <span class="purpose">minimum number of characters in an interesting word</span></h3>
  1214. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1215. Logfile = &quot;channel.log&quot;
  1216. Format = &quot;xchat&quot;
  1217. WordLength = &quot;10&quot;
  1218. &lt;/channel&gt;
  1219. &lt;set WordLength=&quot;2&quot;&gt;</pre>
  1220. <h4>Description</h4>
  1221. <p>The &quot;Most Used Words&quot; section on the stats page display the most used
  1222. words. The default is that a word only appears if it is longer than 5
  1223. characters. With this option you can change that minimum.</p>
  1224. <h4>Default</h4>
  1225. <p>5</p>
  1226. </section>
  1227. <section class="option" id="QuoteWidth"><h3>QuoteWidth <span class="purpose">maximum allowed length of a &quot;word&quot; with no spaces</span></h3>
  1228. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1229. Logfile = &quot;channel.log&quot;
  1230. Format = &quot;xchat&quot;
  1231. QuoteWidth = &quot;48&quot;
  1232. &lt;/channel&gt;
  1233. &lt;set QuoteWidth=&quot;48&quot;&gt;</pre>
  1234. <h4>Description</h4>
  1235. <p>Pisg will automatically insert a space in words that have a length
  1236. over the amount QuoteWidth is set to. When used in breaking up
  1237. URLs it will insert a space in the displayed URL, but not in the
  1238. actual URL referenced by the HREF.</p>
  1239. <h4>Default</h4>
  1240. <p>80</p>
  1241. </section>
  1242. <section class="option" id="BigNumbersThreshold"><h3>BigNumbersThreshold <span class="purpose">Minimum number of lines per user for some &quot;Big Numbers&quot; statistics</span></h3>
  1243. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1244. Logfile = &quot;channel.log&quot;
  1245. Format = &quot;xchat&quot;
  1246. BigNumbersThreshold = &quot;10&quot;
  1247. &lt;/channel&gt;
  1248. &lt;set BigNumbersThreshold=&quot;sqrt&quot;&gt;</pre>
  1249. <h4>Description</h4>
  1250. <p>Pisg will ignore users with less than this setting lines in the &quot;questions
  1251. asked&quot;, &quot;shouts loudest&quot;, &quot;CAPSLOCK&quot;, &quot;longest line&quot;, &quot;most sad&quot;, and &quot;most
  1252. happy&quot; sections. If the setting is &quot;sqrt&quot; (the default), it will be
  1253. dynamically replaced with the square root of the number of lines of the
  1254. most active nick. See also <a href="#ShowOnlyTop">ShowOnlyTop</a>.</p>
  1255. <h4>Default</h4>
  1256. <p>sqrt</p>
  1257. </section>
  1258. <section class="option" id="ActiveNicks"><h3>ActiveNicks <span class="purpose">nicks to show in &quot;Most Active Nicks&quot;</span></h3>
  1259. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1260. Logfile = &quot;channel.log&quot;
  1261. Format = &quot;mIRC&quot;
  1262. ActiveNicks = &quot;50&quot;
  1263. &lt;/channel&gt;
  1264. &lt;set ActiveNicks=&quot;10&quot;&gt;</pre>
  1265. <h4>Description</h4>
  1266. <p>With this option you can define how many nicks you want to appear in the
  1267. &quot;Most Active Nicks&quot; section on the stats page.</p>
  1268. <h4>Default</h4>
  1269. <p>25</p>
  1270. </section>
  1271. <section class="option" id="ActiveNicks2"><h3>ActiveNicks2 <span class="purpose">nicks to show in &quot;These didn&#x27;t make it..&quot;</span></h3>
  1272. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1273. Logfile = &quot;channel.log&quot;
  1274. Format = &quot;mIRC&quot;
  1275. ActiveNicks2 = &quot;25&quot;
  1276. &lt;/channel&gt;
  1277. &lt;set ActiveNicks2=&quot;10&quot;&gt;</pre>
  1278. <h4>Description</h4>
  1279. <p>With this option you can define how many nicks you want to appear in the
  1280. &quot;These didn&#x27;t make it&quot; section on the stats page.</p>
  1281. <h4>Default</h4>
  1282. <p>30</p>
  1283. </section>
  1284. <section class="option" id="ActiveNicksByHour"><h3>ActiveNicksByHour <span class="purpose">number of nicks to show in &quot;Most Active Nicks By Hour&quot;</span></h3>
  1285. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1286. Logfile = &quot;channel.log&quot;
  1287. Format = &quot;mIRC&quot;
  1288. ActiveNicksByHour = &quot;25&quot;
  1289. &lt;/channel&gt;
  1290. &lt;set ActiveNicksByHour=&quot;10&quot;&gt;</pre>
  1291. <h4>Description</h4>
  1292. <p>With this option you can define how many nicks you want to appear in the
  1293. &quot;Most Active Nicks By Hour&quot; section on the stats page.</p>
  1294. <h4>Default</h4>
  1295. <p>10</p>
  1296. </section>
  1297. <section class="option" id="MostNicksHistory"><h3>MostNicksHistory <span class="purpose">maximum number of nicks to show in &quot;users with most nicknames&quot;</span></h3>
  1298. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1299. Logfile = &quot;channel.log&quot;
  1300. Format = &quot;mIRC&quot;
  1301. MostNicksHistory = &quot;2&quot;
  1302. &lt;/channel&gt;
  1303. &lt;set MostNicksHistory=&quot;10&quot;&gt;</pre>
  1304. <h4>Description</h4>
  1305. <p>With this option you can define how many nicks you want to appear in
  1306. the &quot;Users with most nicknames&quot; section. See also
  1307. <a href="#ShowMostNicks">ShowMostNicks</a> and <a href="#MostNicksVerbose">MostNicksVerbose</a>.</p>
  1308. <h4>Default</h4>
  1309. <p>5</p>
  1310. </section>
  1311. <section class="option" id="MostNicksVerbose"><h3>MostNicksVerbose <span class="purpose">show nicks used in &quot;most nicks&quot;</span></h3>
  1312. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1313. Logfile = &quot;channel.log&quot;
  1314. Format = &quot;mIRC&quot;
  1315. MostNicksVerbose = &quot;0&quot;
  1316. &lt;/channel&gt;
  1317. &lt;set MostNicksVerbose=&quot;1&quot;&gt;</pre>
  1318. <h4>Description</h4>
  1319. <p>By disabling this option you can stop pisg from displaying all the nicks
  1320. a user has had in the &quot;Most used nicks&quot; section.
  1321. See also <a href="#ShowMostNicks">ShowMostNicks</a>,
  1322. <a href="#MostNicksHistory">MostNicksHistory</a>, and <a href="#NickLimit">NickLimit</a>.</p>
  1323. <h4>Default</h4>
  1324. <p>1 (enabled)</p>
  1325. </section>
  1326. <section class="option" id="TopicHistory"><h3>TopicHistory <span class="purpose">maximum number of topics to show</span></h3>
  1327. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1328. Logfile = &quot;channel.log&quot;
  1329. Format = &quot;mIRC&quot;
  1330. TopicHistory = &quot;2&quot;
  1331. &lt;/channel&gt;
  1332. &lt;set TopicHistory=&quot;10&quot;&gt;</pre>
  1333. <h4>Description</h4>
  1334. <p>With this option you can define how many topics you want to appear in
  1335. the &quot;Latest topics&quot; section.</p>
  1336. <h4>Default</h4>
  1337. <p>3</p>
  1338. </section>
  1339. <section class="option" id="UrlHistory"><h3>UrlHistory <span class="purpose">maximum number of URLs to show</span></h3>
  1340. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1341. Logfile = &quot;channel.log&quot;
  1342. Format = &quot;mIRC&quot;
  1343. UrlHistory = &quot;2&quot;
  1344. &lt;/channel&gt;
  1345. &lt;set UrlHistory=&quot;10&quot;&gt;</pre>
  1346. <h4>Description</h4>
  1347. <p>With this option you can define how many URLs you want to appear in
  1348. the &quot;Most referenced URLs&quot; section. See also <a href="#ShowMru">ShowMru</a>.</p>
  1349. <h4>Default</h4>
  1350. <p>5</p>
  1351. </section>
  1352. <section class="option" id="ChartsHistory"><h3>ChartsHistory <span class="purpose">number of songs to show</span></h3>
  1353. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1354. Logfile = &quot;channel.log&quot;
  1355. Format = &quot;mIRC&quot;
  1356. ChartsHistory = &quot;10&quot;
  1357. &lt;/channel&gt;
  1358. &lt;set ChartsHistory=&quot;5&quot;&gt;</pre>
  1359. <h4>Description</h4>
  1360. <p>This option sets the number of songs that will be show in the channel music
  1361. charts. See also <a href="#ShowCharts">ShowCharts</a> and
  1362. <a href="#ChartsRegexp">ChartsRegexp</a>.</p>
  1363. <h4>Default</h4>
  1364. <p>5 (the Top Five)</p>
  1365. </section>
  1366. <section class="option" id="ChartsRegexp"><h3>ChartsRegexp <span class="purpose">how to recognize songs played</span></h3>
  1367. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1368. Logfile = &quot;channel.log&quot;
  1369. Format = &quot;mIRC&quot;
  1370. ChartsRegexp = &quot;(?:is )?(?:np:|(?:now )?playing:? |listening to:? )(?:MPEG stream from)?\s*(.*)&quot;
  1371. &lt;/channel&gt;</pre>
  1372. <h4>Description</h4>
  1373. <p>This option is a perl regexp that is used to recognize songs played. Please
  1374. tell the pisg mailing list if you have a better default. The regexp MUST
  1375. contain a single () pair to extract the song name. See also the perlre(1)
  1376. manpage, <a href="#ShowCharts">ShowCharts</a> and <a href="#ChartsHistory">ChartsHistory</a>.</p>
  1377. <h4>Default</h4>
  1378. <p>&quot;(?:np:|(?:now )?playing:? (?:MPEG stream from)?)\s*(.*)&quot;</p>
  1379. </section>
  1380. <section class="option" id="WordHistory"><h3>WordHistory <span class="purpose">maximum number of words to show</span></h3>
  1381. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1382. Logfile = &quot;channel.log&quot;
  1383. Format = &quot;mIRC&quot;
  1384. WordHistory = &quot;5&quot;
  1385. &lt;/channel&gt;
  1386. &lt;set WordHistory=&quot;15&quot;&gt;</pre>
  1387. <h4>Description</h4>
  1388. <p>With this option you can define how many words you want to appear in
  1389. the &quot;Most used words&quot; section. See also <a href="#ShowMuw">ShowMuw</a>.</p>
  1390. <h4>Default</h4>
  1391. <p>10</p>
  1392. </section>
  1393. <section class="option" id="NickHistory"><h3>NickHistory <span class="purpose">maximum number of nicks to show in &quot;Most referenced nicks&quot;</span></h3>
  1394. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1395. logfile = &quot;channel.log&quot;
  1396. format = &quot;mIRC&quot;
  1397. NickHistory = &quot;3&quot;
  1398. &lt;/channel&gt;
  1399. &lt;set NickHistory=&quot;15&quot;&gt;</pre>
  1400. <h4>Description</h4>
  1401. <p>With this option you can define how many nicks you want to appear in
  1402. the &quot;Most referenced nicks&quot; section. See also <a href="#ShowMrn">ShowMrn</a>.</p>
  1403. <h4>Default</h4>
  1404. <p>5</p>
  1405. </section>
  1406. <section class="option" id="SmileyHistory"><h3>SmileyHistory <span class="purpose">maximum number of smileys to show in smiley stats</span></h3>
  1407. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1408. logfile = &quot;channel.log&quot;
  1409. format = &quot;mIRC&quot;
  1410. SmileyHistory = &quot;3&quot;
  1411. &lt;/channel&gt;
  1412. &lt;set SmileyHistory=&quot;15&quot;&gt;</pre>
  1413. <h4>Description</h4>
  1414. <p>At most this many smileys will appear in smiley stats.
  1415. See also <a href="#ShowSmileys">ShowSmileys</a>.</p>
  1416. <h4>Default</h4>
  1417. <p>10</p>
  1418. </section>
  1419. <section class="option" id="KarmaHistory"><h3>KarmaHistory <span class="purpose">maximum number of nicks to show in &quot;Karma&quot;</span></h3>
  1420. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1421. logfile = &quot;channel.log&quot;
  1422. format = &quot;mIRC&quot;
  1423. KarmaHistory = &quot;3&quot;
  1424. &lt;/channel&gt;
  1425. &lt;set KarmaHistory=&quot;15&quot;&gt;</pre>
  1426. <h4>Description</h4>
  1427. <p>At most this many nicks will appear in the good and bad karma stats.
  1428. See also <a href="#ShowKarma">ShowKarma</a> and <a href="#NickLimit">NickLimit</a>.</p>
  1429. <h4>Default</h4>
  1430. <p>5</p>
  1431. </section>
  1432. <section class="option" id="NickTracking"><h3>NickTracking <span class="purpose">track nick changes and create aliases</span></h3>
  1433. <pre>&lt;set NickTracking=&quot;1&quot;&gt;</pre>
  1434. <h4>Description</h4>
  1435. <p>Enabling this option will track nick changes as well as it can. It will
  1436. then automatically create aliases for these nicks. Useful for
  1437. <a href="#ShowMostNicks">ShowMostNicks</a> and other stats.
  1438. Nick tracking does not work for log formats that do not use the nickname
  1439. for the person running the logger, but only show &quot;You&quot; there.
  1440. See <a href="#Maintainer">Maintainer</a>.</p>
  1441. <h4>Default</h4>
  1442. <p>0 (disabled)</p>
  1443. </section>
  1444. <section class="option" id="NickLimit"><h3>NickLimit <span class="purpose">maximum number of nicks in lists</span></h3>
  1445. <pre>&lt;set NickLimit=&quot;0&quot;&gt;</pre>
  1446. <h4>Description</h4>
  1447. <p>This option trims lists of nicks to a maximum length, replacing the rest
  1448. with &quot;...&quot;. Setting to 0 disables trimming. Affected are the used nicks in
  1449. the &quot;Users with most nicknames&quot; section, nicks in &quot;Most active genders&quot;,
  1450. and nicks in the &quot;Good/bad karma by&quot; columns. See
  1451. <a href="#ShowMostNicks">ShowMostNicks</a>, <a href="#ShowKarma">ShowKarma</a>, and
  1452. <a href="#ShowActiveGenders">ShowActiveGenders</a>.</p>
  1453. <h4>Default</h4>
  1454. <p>10</p>
  1455. </section>
  1456. <section class="option" id="SortByWords"><h3>SortByWords <span class="purpose">sort &quot;most active nicks&quot; by words</span></h3>
  1457. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1458. logfile = &quot;channel.log&quot;
  1459. format = &quot;xchat&quot;
  1460. SortByWords = &quot;0&quot;
  1461. &lt;/channel&gt;
  1462. &lt;set SortByWords=&quot;1&quot;&gt;</pre>
  1463. <h4>Description</h4>
  1464. <p>The default for the &quot;Most Active Nicks&quot; section - is to sort users by
  1465. lines. Enabling this will sort it by words instead.</p>
  1466. <h4>Default</h4>
  1467. <p>0 (disabled)</p>
  1468. </section>
  1469. </section>
  1470. <section class="chapter" id="reference-pictures"><h2>5. Picture options</h2>
  1471. <section class="option" id="PicLocation"><h3>PicLocation <span class="purpose">path to images on stats page</span></h3>
  1472. <pre>&lt;set PicLocation=&quot;gfx/&quot;&gt;</pre>
  1473. <h4>Description</h4>
  1474. <p>The location to the pictures used on the stats page - not the user
  1475. pictures but the different bars in &quot;Most Active Times&quot;.</p>
  1476. <h4>Default</h4>
  1477. <p>Current directory</p>
  1478. </section>
  1479. <section class="option" id="UserPics"><h3>UserPics <span class="purpose">number of user pictures per row</span></h3>
  1480. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1481. Logfile = &quot;channel.log&quot;
  1482. UserPics = &quot;no&quot;
  1483. &lt;/channel&gt;
  1484. &lt;set UserPics=&quot;3&quot;&gt;</pre>
  1485. <h4>Description</h4>
  1486. <p><code>UserPics</code> allows you to configure the number of user
  1487. pictures per row. Per default, one picture will be shown. Since pictures
  1488. are usually higher than one line of text, this lets the table grow. With
  1489. settings greater than 1, several pictures will be placed next to each
  1490. other. A good setting would be <code>UserPics</code>=3 and pictures
  1491. of size 60x60. Set <code>UserPics</code> to no or 0 to disable user
  1492. pictures. The latter is useful if you share a user config file between
  1493. channels and want to disable user pictures for some channels.</p>
  1494. <h4>Default</h4>
  1495. <p>yes (1)</p>
  1496. </section>
  1497. <section class="option" id="ImagePath"><h3>ImagePath <span class="purpose">path to user pictures (HTML page)</span></h3>
  1498. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1499. Logfile = &quot;channel.log&quot;
  1500. Format = &quot;mIRC&quot;
  1501. ImagePath = &quot;userpics/&quot;
  1502. &lt;/channel&gt;
  1503. &lt;set ImagePath=&quot;users/&quot;&gt;</pre>
  1504. <h4>Description</h4>
  1505. <p><code>ImagePath</code> defines the path to where user
  1506. pictures are located, relative to the HTML page generated. The default is
  1507. that user pictures is located in the same directory as the HTML page.</p>
  1508. <h4>Default</h4>
  1509. <p>current directory</p>
  1510. </section>
  1511. <section class="option" id="DefaultPic"><h3>DefaultPic <span class="purpose">use a default user picture</span></h3>
  1512. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1513. Logfile = &quot;channel.log&quot;
  1514. Format = &quot;mIRC&quot;
  1515. DefaultPic = &quot;not_available.jpg&quot;
  1516. &lt;/channel&gt;
  1517. &lt;set DefaultPic=&quot;unknown.gif&quot;&gt;</pre>
  1518. <h4>Description</h4>
  1519. <p><code>DefaultPic</code> defines a picture to be displayed for all
  1520. users which have no other picture defined in the <code>user</code>
  1521. element. This is good for showing &quot;No picture available&quot; or something.
  1522. May contain globbing patterns, see <a href="#ImageGlobPath">ImageGlobPath</a> below.</p>
  1523. <h4>Default</h4>
  1524. <p>unset</p>
  1525. </section>
  1526. <section class="option" id="ImageGlobPath"><h3>ImageGlobPath <span class="purpose">path to user pictures (output generation)</span></h3>
  1527. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1528. Logfile = &quot;channel.log&quot;
  1529. Format = &quot;mIRC&quot;
  1530. ImageGlobPath = &quot;users/&quot;
  1531. &lt;/channel&gt;
  1532. &lt;set ImageGlobPath=&quot;/var/www/pisg/&quot;&gt;
  1533. &lt;set DefaultPic=&quot;default-??.gif&quot;&gt;</pre>
  1534. <h4>Description</h4>
  1535. <p><code>ImageGlobPath</code> defines the path to the directory where
  1536. user pictures are located, relative to the current directory. This setting
  1537. is used to choose random pictures if ? or * (globbing characters) are used
  1538. in the picture name. ? matches a single character, * matches a (possibly
  1539. empty) string. The default is the <a href="#ImagePath">ImagePath</a> setting.
  1540. (NB: This setting will be different from <a href="#ImagePath">ImagePath</a> if
  1541. the latter is not relative to the current directory, e.g. if you are
  1542. writing the HTML file outside of the current directory.)</p>
  1543. <h4>Default</h4>
  1544. <p>current <a href="#ImagePath">ImagePath</a> setting</p>
  1545. </section>
  1546. <section class="option" id="PicWidth"><h3>PicWidth <span class="purpose">define a standard width for user pictures</span></h3>
  1547. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1548. Logfile = &quot;channel.log&quot;
  1549. Format = &quot;mIRC&quot;
  1550. PicWidth = &quot;500&quot;
  1551. &lt;/channel&gt;
  1552. &lt;set PicWidth=&quot;500&quot;&gt;</pre>
  1553. <h4>Description</h4>
  1554. <p><code>PicWidth</code> defines the standard width for user
  1555. pictures. Setting the &#x27;width&#x27; attribute of image-elements on the
  1556. outputted stats page. See also <a href="#PicHeight">PicHeight</a>.</p>
  1557. <h4>Default</h4>
  1558. <p>unset</p>
  1559. </section>
  1560. <section class="option" id="PicHeight"><h3>PicHeight <span class="purpose">define a standard height for user pictures</span></h3>
  1561. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1562. Logfile = &quot;channel.log&quot;
  1563. Format = &quot;mIRC&quot;
  1564. PicHeight = &quot;500&quot;
  1565. &lt;/channel&gt;
  1566. &lt;set PicHeight=&quot;500&quot;&gt;</pre>
  1567. <h4>Description</h4>
  1568. <p><code>PicHeight</code> defines the standard height for user
  1569. pictures. Setting the &#x27;height&#x27; attribute of image-elements on the
  1570. outputted stats page. See also <a href="#PicWidth">PicWidth</a>.</p>
  1571. <h4>Default</h4>
  1572. <p>unset</p>
  1573. </section>
  1574. </section>
  1575. <section class="chapter" id="reference-misc"><h2>6. Misc options</h2>
  1576. <section class="option" id="Charset"><h3>Charset <span class="purpose">character set to use for stats page</span></h3>
  1577. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1578. Logfile = &quot;channel.log&quot;
  1579. Format = &quot;xchat&quot;
  1580. Charset = &quot;utf-8&quot;
  1581. &lt;/channel&gt;
  1582. &lt;set Charset=&quot;iso-8859-15&quot;&gt;</pre>
  1583. <h4>Description</h4>
  1584. <p>The pisg stats page defines a character set in a meta tag, this can be
  1585. used if your country is using a different one than the default. Pisg
  1586. will also use this setting to convert the language templates from
  1587. <a href="#LangFile">LangFile</a> if the language defines a source charset.
  1588. Note: you also have to tell your webserver to transmit the charset to
  1589. the browser. With Apache, use &quot;AddDefaultCharset off&quot; in the server
  1590. config.</p>
  1591. <h4>Default</h4>
  1592. <p>iso-8859-1</p>
  1593. </section>
  1594. <section class="option" id="LogCharset"><h3>LogCharset <span class="purpose">character set for logfiles</span></h3>
  1595. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1596. Logfile = &quot;channel.log&quot;
  1597. Format = &quot;xchat&quot;
  1598. Charset = &quot;iso-8859-1&quot;
  1599. LogCharset = &quot;utf-8&quot;
  1600. &lt;/channel&gt;
  1601. &lt;set Charset=&quot;iso-8859-15&quot;&gt;
  1602. &lt;set LogCharset=&quot;iso-8859-15&quot;&gt;</pre>
  1603. <h4>Description</h4>
  1604. <p>If <code>LogCharset</code> is set and different from
  1605. <a href="#Charset">Charset</a>, pisg will convert the charset using
  1606. Text::Iconv. Using this option slows down log processing.</p>
  1607. <h4>Default</h4>
  1608. <p>empty (no conversion)</p>
  1609. </section>
  1610. <section class="option" id="LogCharsetFallback"><h3>LogCharsetFallback <span class="purpose">fallback character set for logfiles</span></h3>
  1611. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1612. Logfile = &quot;channel.log&quot;
  1613. Format = &quot;xchat&quot;
  1614. Charset = &quot;utf-8&quot;
  1615. LogCharset = &quot;utf-8&quot;
  1616. LogCharsetFallback = &quot;iso-8859-1&quot;
  1617. &lt;/channel&gt;
  1618. &lt;set Charset=&quot;utf-8&quot;&gt;
  1619. &lt;set LogCharset=&quot;utf-8&quot;&gt;
  1620. &lt;set LogCharsetFallback=&quot;iso-8859-15&quot;&gt;</pre>
  1621. <h4>Description</h4>
  1622. <p><code>LogCharsetFallback</code> defines a fallback charset for
  1623. the <a href="#LogCharset">LogCharset</a> conversion. This is useful if you
  1624. have mixed unicode/iso-8859-* logs. Pisg will first try the conversion
  1625. from <a href="#LogCharset">LogCharset</a>. If that fails,
  1626. <code>LogCharsetFallback</code> is used. Note that this only works
  1627. for charsets where certain byte sequences are illegal, like UTF-8. (In
  1628. short: <code>LogCharset</code> = utf-8,
  1629. <code>LogCharsetFallback</code> = iso-8859-15 works, the other way
  1630. round does not.)</p>
  1631. <h4>Default</h4>
  1632. <p>empty (no fallback conversion)</p>
  1633. </section>
  1634. <section class="option" id="TimeOffset"><h3>TimeOffset <span class="purpose">use a different time zone than the local machine</span></h3>
  1635. <pre>&lt;channel=&quot;#channel&quot;&gt;
  1636. Logfile = &quot;channel.log&quot;
  1637. Format = &quot;mIRC&quot;
  1638. Maintainer = &quot;John&quot;
  1639. TimeOffset = &quot;+5&quot;
  1640. &lt;/channel&gt;
  1641. &lt;set TimeOffset=&quot;+2&quot;&gt;</pre>
  1642. <h4>Description</h4>
  1643. <p>By default, pisg uses the time of the local machine to display the time
  1644. of the generated stats. Sometimes when you have a shell on an external
  1645. box, and it&#x27;s in another country, you want to use another time. This is
  1646. accomplished by the <code>TimeOffset</code> command.</p>
  1647. <h4>Default</h4>
  1648. <p>+0</p>
  1649. </section>
  1650. <section class="option" id="RegexpAliases"><h3>RegexpAliases <span class="purpose">use regular expressions in user aliases</span></h3>
  1651. <pre>&lt;user nick=&quot;Joe&quot; alias=&quot;Joe\d+&quot;&gt;
  1652. &lt;set RegexpAliases=&quot;1&quot;&gt;</pre>
  1653. <h4>Description</h4>
  1654. <p>Enabling this option will make all aliases in &lt;user&gt; lines be
  1655. parsed as regular expressions; this setting also applies to the
  1656. <a href="#IgnoreWords">IgnoreWords</a>, <a href="#FoulWords">FoulWords</a>, and
  1657. <a href="#ViolentWords">ViolentWords</a> settings.</p>
  1658. <h4>Default</h4>
  1659. <p>0 (disabled)</p>
  1660. </section>
  1661. <section class="option" id="LangFile"><h3>LangFile <span class="purpose">filename of language file</span></h3>
  1662. <pre>&lt;set LangFile=&quot;mylang.txt&quot;&gt;</pre>
  1663. <h4>Description</h4>
  1664. <p>With this option you have an alternative way to define the name and/or
  1665. path to the language file. Usually you don&#x27;t have to touch this option.</p>
  1666. <h4>Default</h4>
  1667. <p>lang.txt</p>
  1668. </section>
  1669. <section class="option" id="CssDir"><h3>CssDir <span class="purpose">path to directory with CSS files</span></h3>
  1670. <pre>&lt;set CssDir=&quot;/usr/share/pisg/layout/&quot;&gt;</pre>
  1671. <h4>Description</h4>
  1672. <p><code>CssDir</code> is used to define the paths to the CSS files
  1673. (the <a href="#ColorScheme">ColorScheme</a>s). Usually you don&#x27;t
  1674. need to change this. This setting is only used when statically including
  1675. the CSS file.</p>
  1676. <h4>Default</h4>
  1677. <p>layout/ (in current directory)</p>
  1678. </section>
  1679. <section class="option" id="HiCell"><h3>HiCell, HiCell2 <span class="purpose">colors for color gradient in most active nicks section</span></h3>
  1680. <pre>&lt;set HiCell=&quot;#BABADD&quot; HiCell2=&quot;#CCCCCC&quot;&gt;
  1681. &lt;set HiCell=&quot;&quot;&gt;</pre>
  1682. <h4>Description</h4>
  1683. <p><code>HiCell</code> and <code>HiCell2</code> define the colors
  1684. to be used for the color gradient in the most active nicks section. They should
  1685. match your <a href="#ColorScheme">ColorScheme</a>. When setting
  1686. <code>HiCell</code> the empty string (&quot;&quot;), pisg will not generate a color
  1687. gradient; you might want to use this with <a href="#ColorScheme">ColorScheme</a>=&quot;none&quot;
  1688. or <a href="#AltColorScheme">AltColorScheme</a>.</p>
  1689. <h4>Default</h4>
  1690. <p>#BABADD, #CCCCCC</p>
  1691. </section>
  1692. <section class="option" id="LogType"><h3>LogType <span class="purpose">type of log (not the format of the log)</span></h3>
  1693. <pre>&lt;set LogType=&quot;Logfile&quot;&gt;</pre>
  1694. <h4>Description</h4>
  1695. <p>The type of logs kept for your channel. Currently only &quot;Logfile&quot; is
  1696. supported, so you don&#x27;t need to change this option.</p>
  1697. <h4>Default</h4>
  1698. <p>Logfile</p>
  1699. </section>
  1700. <section class="option" id="StatsDump"><h3>StatsDump <span class="purpose">dump raw statistics into file</span></h3>
  1701. <pre>&lt;set StatsDump=&quot;statsdump&quot;&gt;</pre>
  1702. <h4>Description</h4>
  1703. <p>This option is intended for debugging pisg, but might be useful to process
  1704. the parsed logs with another program. The file contains the %stats and
  1705. %lines hashes in perl&#x27;s Data::Dumper format.</p>
  1706. <h4>Default</h4>
  1707. <p>Unset</p>
  1708. </section>
  1709. </section>
  1710. <section class="chapter" id="copyright"><h2>7. Copyright and License</h2>
  1711. <p>pisg - Perl IRC Statistics Generator</p>
  1712. <p>Copyright (C) 2001-2012 The pisg project</p>
  1713. <p>This program is free software; you can redistribute it and/or modify
  1714. it under the terms of the GNU General Public License as published by
  1715. the Free Software Foundation; either version 2 of the License, or
  1716. (at your option) any later version.</p>
  1717. <p>This program is distributed in the hope that it will be useful,
  1718. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1719. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1720. GNU General Public License for more details.</p>
  1721. <p>You should have received a copy of the GNU General Public License
  1722. along with this program; if not, write to the Free Software
  1723. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p>
  1724. </section>
  1725. <section class="chapter" id="example-config">
  1726. <h2>8. Complete example configuration</h2>
  1727. <p>A ready-to-use <code>pisg.cfg</code> for a channel called <code>#example</code>. It lists every
  1728. option pisg understands, with what it does, so you can copy it and change only the lines marked
  1729. <code>EDIT</code>: the log file, its format, the network name, the output file and your name.
  1730. Options are at pisg's own defaults unless the comment says <em>recommended</em>.</p>
  1731. <ol>
  1732. <li>Copy the file below (or download it) and save it as <code>pisg.cfg</code> next to <code>pisg</code>.</li>
  1733. <li>Change the <code>EDIT</code> values in the <code>&lt;channel&gt;</code> block.</li>
  1734. <li>Run <code>./pisg</code>.</li>
  1735. </ol>
  1736. <div class="codewrap">
  1737. <div class="codebar"><span>pisg.cfg</span>
  1738. <a class="btn" href="data:text/plain;charset=utf-8,%23%20pisg.cfg.example%20-%20a%20complete%20configuration%20for%20pisg%2C%20ready%20to%20copy.%0A%23%0A%23%20%20%201.%20Copy%20this%20file%20to%20pisg.cfg%0A%23%20%20%202.%20Change%20the%20values%20marked%20%20EDIT%20%20%28log%20path%2C%20format%2C%20network%2C%20output%20file%2C%20name%29%0A%23%20%20%203.%20Run%20./pisg%0A%23%0A%23%20Every%20option%20pisg%20understands%20is%20listed%20below%20with%20its%20meaning.%20Options%20are%20set%20to%0A%23%20pisg%27s%20own%20default%20unless%20the%20comment%20says%20%22recommended%22.%20Lines%20starting%20with%20%23%20are%0A%23%20comments%3B%20an%20option%20shown%20commented%20out%20is%20off/unset%20-%20remove%20the%20%23%20to%20use%20it.%0A%23%0A%23%20Syntax%20reminders%3A%0A%23%20%20%20%3Cset%20Name%3D%22value%22%3E%20%20%20%20%20%20a%20global%20option%2C%20applies%20to%20every%20channel%0A%23%20%20%20%3Cchannel%3D%22%23name%22%3E%20...%20%3C/channel%3E%20%20%20settings%20for%20one%20channel%20%28they%20override%20%3Cset%3E%29%0A%23%20%20%20%3Cuser%20nick%3D%22...%22%20...%3E%20%20%20per-user%20settings%0A%23%20Each%20%3Cset%3E%20must%20be%20on%20one%20line%2C%20and%20every%20value%20must%20be%20in%20quotes.%0A%0A%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20%20GLOBAL%20OPTIONS%20-%20apply%20to%20every%20channel%20below%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0A%23%20----%20General%20options%20-------------------------------------------------------%0A%0A%23%20use%20a%20different%20color%20scheme%20for%20stats%20page%20-%20recommended%3A%20modern%2C%20light/dark%20theme%3B%0A%23%20try%20midnight%2C%20amoled%2C%20terminal%2C%20canada%2C%20or%20default%0A%3Cset%20ColorScheme%3D%22modern%22%3E%0A%0A%23%20alternate%20stylesheets%20for%20stats%20page%20-%20extra%20stylesheets%20the%20visitor%20can%20switch%20to%0A%23%3Cset%20AltColorScheme%3D%22midnight.css%20amoled.css%22%3E%0A%0A%23%20define%20the%20language%20/%20translation%20to%20use%0A%3Cset%20Lang%3D%22EN%22%3E%0A%0A%23%20define%20a%20file%20as%20page%20header%20-%20HTML%20file%20inserted%20above%20the%20statistics%0A%23%3Cset%20PageHead%3D%22header.html%22%3E%0A%0A%23%20define%20a%20file%20as%20page%20footer%20-%20HTML%20file%20inserted%20below%20the%20statistics%0A%23%3Cset%20PageFoot%3D%22footer.html%22%3E%0A%0A%23%20make%20pisg%20silent%2C%20suppress%20messages%0A%3Cset%20Silent%3D%220%22%3E%0A%0A%23%20use%20a%20cache%20to%20speed%20up%20log%20parsing%20-%20cache%20parsed%20logs%20here%20to%20speed%20up%20runs%20%28delete%0A%23%20it%20when%20you%20change%20settings%29%0A%23%3Cset%20CacheDir%3D%22cache/%22%3E%0A%0A%23%20name%20of%20the%20channel%20list%20file%20for%20a%20landing%20page%0A%3Cset%20ChannelIndex%3D%22channels.json%22%3E%0A%0A%23%20adds%20a%20button%20at%20the%20top%20of%20every%20stats%20page%20that%20leads%20back%20to%20your%20landing%20page%0A%3Cset%20HomeLink%3D%22%22%3E%0A%0A%23%20enable/disable%20the%20section%20bar%20at%20the%20top%20of%20the%20page%0A%3Cset%20ShowNavBar%3D%221%22%3E%0A%0A%23%20----%20Options%20for%20various%20statistics%20features%20-------------------------------%0A%0A%23%20number%20of%20days%20to%20show%20in%20%22Daily%20Actitity%22%20-%20recommended%3A%20show%20the%20last%2014%20days%20as%20a%0A%23%20bar%20chart%0A%3Cset%20DailyActivity%3D%2214%22%3E%0A%0A%23%20enable/disable%20%22Most%20Active%20Times%22%0A%3Cset%20ShowActiveTimes%3D%221%22%3E%0A%0A%23%20enable/disable%20%22Most%20Active%20Nicks%22%0A%3Cset%20ShowActiveNicks%3D%221%22%3E%0A%0A%23%20enable/disable%20%22Big%20Numbers%22%20sections%0A%3Cset%20ShowBigNumbers%3D%221%22%3E%0A%0A%23%20enable/disable%20%22Latest%20topics%22%20sections%0A%3Cset%20ShowTopics%3D%221%22%3E%0A%0A%23%20enable/disable%20%22number%20of%20lines%22%0A%3Cset%20ShowLines%3D%221%22%3E%0A%0A%23%20enable/disable%20%22words%20per%20line%22%20-%20recommended%3A%20also%20show%20words%20per%20line%0A%3Cset%20ShowWpl%3D%221%22%3E%0A%0A%23%20enable/disable%20%22characters%20per%20line%22%20-%20recommended%3A%20also%20show%20characters%20per%20line%0A%3Cset%20ShowCpl%3D%221%22%3E%0A%0A%23%20enable/disable%20%22number%20of%20words%22%20-%20recommended%3A%20also%20show%20total%20words%0A%3Cset%20ShowWords%3D%221%22%3E%0A%0A%23%20show%20when%20a%20user%20was%20last%20seen%20on%20a%20channel%0A%3Cset%20ShowLastSeen%3D%221%22%3E%0A%0A%23%20show%20when%20a%20nick%20was%20active%0A%3Cset%20ShowTime%3D%221%22%3E%0A%0A%23%20mIRCStats%20like%20behaviour%20of%20time%20bar%0A%3Cset%20ShowLineTime%3D%220%22%3E%0A%0A%23%20ShowLineTime%20like%20behavior%20of%20words%20column%0A%3Cset%20ShowWordTime%3D%220%22%3E%0A%0A%23%20enable%20or%20disable%20the%20random%20quotes%0A%3Cset%20ShowRandQuote%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20the%20legend%20of%20the%20time%20bars%0A%3Cset%20ShowLegend%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20the%20kick%20line%0A%3Cset%20ShowKickLine%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20the%20action%20line%0A%3Cset%20ShowActionLine%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20the%20shout%20line%0A%3Cset%20ShowShoutLine%3D%221%22%3E%0A%0A%23%20set%20how%20many%20decimals%20to%20show%0A%3Cset%20ShowFoulDecimals%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20the%20foul%20line%0A%3Cset%20ShowFoulLine%3D%220%22%3E%0A%0A%23%20enable%20or%20disable%20the%20violent%20lines%0A%3Cset%20ShowViolentLines%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20%22Most%20used%20words%22%0A%3Cset%20ShowMuw%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20%22Most%20referenced%20nicks%22%0A%3Cset%20ShowMrn%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20%22Most%20referenced%20URLs%22%0A%3Cset%20ShowMru%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20channel%20music%20charts%0A%3Cset%20ShowCharts%3D%220%22%3E%0A%0A%23%20enable%20or%20disable%20op%20statistics%0A%3Cset%20ShowOps%3D%221%22%3E%0A%0A%23%20enable%20or%20disable%20voice%20statistics%0A%3Cset%20ShowVoices%3D%220%22%3E%0A%0A%23%20enable%20or%20disable%20halfop%20statistics%0A%3Cset%20ShowHalfops%3D%220%22%3E%0A%0A%23%20show%20who%20changed%20nick%20most%20often%20-%20recommended%3A%20show%20who%20changed%20nick%20most%20often%0A%3Cset%20ShowMostNicks%3D%221%22%3E%0A%0A%23%20show%20stats%20on%20which%20gender%20talked%20most%0A%3Cset%20ShowActiveGenders%3D%220%22%3E%0A%0A%23%20show%20most%20used%20smileys%20-%20recommended%3A%20show%20the%20most%20used%20smileys%0A%3Cset%20ShowSmileys%3D%221%22%3E%0A%0A%23%20show%20channel%20karma%20-%20recommended%3A%20show%20karma%20%28nick%2B%2B%20/%20nick--%29%0A%3Cset%20ShowKarma%3D%221%22%3E%0A%0A%23%20show%20most%20active%20nicks%20by%20hour%20-%20recommended%3A%20show%20the%20most%20active%20nicks%20by%20time%20of%0A%23%20day%0A%3Cset%20ShowMostActiveByHour%3D%221%22%3E%0A%0A%23%20only%20count%20stats%20for%20top%20talkers%2C%20ignore%20less-active%20users%0A%3Cset%20ShowOnlyTop%3D%220%22%3E%0A%0A%23%20show%20graphs%20in%20most%20active%20nicks%20by%20hour%0A%3Cset%20ShowMostActiveByHourGraph%3D%221%22%3E%0A%0A%23%20enable/disable%20the%20channel%20overview%0A%3Cset%20ShowOverview%3D%221%22%3E%0A%0A%23%20enable/disable%20the%20relation%20map%20and%20its%20tables%0A%3Cset%20ShowRelations%3D%221%22%3E%0A%0A%23%20number%20of%20nicks%20on%20the%20relation%20map%0A%3Cset%20RelationNicks%3D%2230%22%3E%0A%0A%23%20minimum%20connection%20strength%20shown%20as%20a%20line%20on%20the%20relation%20map%0A%3Cset%20RelationMinWeight%3D%223%22%3E%0A%0A%23%20enable/disable%20the%20time%20personalities%20section%0A%3Cset%20ShowTimePersonalities%3D%221%22%3E%0A%0A%23%20enable/disable%20the%20%22who%20carries%20the%20channel%22%20section%0A%3Cset%20ShowConcentration%3D%221%22%3E%0A%0A%23%20enable/disable%20the%20signature%20words%20section%0A%3Cset%20ShowSignatureWords%3D%221%22%3E%0A%0A%23%20ignore%20specified%20words%20-%20words%20to%20leave%20out%20of%20the%20word%20statistics%0A%23%3Cset%20IgnoreWords%3D%22badword%20otherword%22%3E%0A%0A%23%20Control%20random%20quote%20output%0A%3Cset%20NoIgnoredQuotes%3D%220%22%3E%0A%0A%23%20specify%20words%20considered%20to%20be%20bad/FoulWords%20language%0A%3Cset%20FoulWords%3D%22ass%20fuck%20bitch%20shit%20scheisse%20schei%C3%9Fe%20kacke%20arsch%20ficker%20ficken%20schlampe%22%3E%0A%0A%23%20specify%20words%20considered%20to%20be%20aggressive/violent%0A%3Cset%20ViolentWords%3D%22slaps%20beats%20smacks%22%3E%0A%0A%23%20words%20that%20keep%20a%20URL%20out%20of%20the%20URL%20statistics%20-%20matched%20anywhere%20in%20a%20URL%2C%20any%20case%3B%0A%23%20%2A%20%3D%20any%20characters%2C%20%3F%20%3D%20one%3B%20for%20spam%20and%20unwanted%20image%20hosts%0A%23%3Cset%20BadUrls%3D%22imagetwist%20imgur.com%20postimg.cc/%2A%22%3E%0A%0A%23%20minimum%20numbers%20of%20letters%20for%20a%20random%20quote%0A%3Cset%20MinQuote%3D%2225%22%3E%0A%0A%23%20maximum%20numbers%20of%20letters%20for%20a%20random%20quote%0A%3Cset%20MaxQuote%3D%2265%22%3E%0A%0A%23%20minimum%20number%20of%20characters%20in%20an%20interesting%20word%0A%3Cset%20WordLength%3D%225%22%3E%0A%0A%23%20maximum%20allowed%20length%20of%20a%20%22word%22%20with%20no%20spaces%0A%3Cset%20QuoteWidth%3D%2280%22%3E%0A%0A%23%20Minimum%20number%20of%20lines%20per%20user%20for%20some%20%22Big%20Numbers%22%20statistics%0A%3Cset%20BigNumbersThreshold%3D%22sqrt%22%3E%0A%0A%23%20nicks%20to%20show%20in%20%22Most%20Active%20Nicks%22%0A%3Cset%20ActiveNicks%3D%2225%22%3E%0A%0A%23%20nicks%20to%20show%20in%20%22These%20didn%27t%20make%20it..%22%0A%3Cset%20ActiveNicks2%3D%2230%22%3E%0A%0A%23%20number%20of%20nicks%20to%20show%20in%20%22Most%20Active%20Nicks%20By%20Hour%22%0A%3Cset%20ActiveNicksByHour%3D%2210%22%3E%0A%0A%23%20maximum%20number%20of%20nicks%20to%20show%20in%20%22users%20with%20most%20nicknames%22%0A%3Cset%20MostNicksHistory%3D%225%22%3E%0A%0A%23%20show%20nicks%20used%20in%20%22most%20nicks%22%0A%3Cset%20MostNicksVerbose%3D%221%22%3E%0A%0A%23%20maximum%20number%20of%20topics%20to%20show%20-%20recommended%3A%20show%20the%20last%205%20topics%0A%3Cset%20TopicHistory%3D%225%22%3E%0A%0A%23%20maximum%20number%20of%20URLs%20to%20show%0A%3Cset%20UrlHistory%3D%225%22%3E%0A%0A%23%20number%20of%20songs%20to%20show%0A%3Cset%20ChartsHistory%3D%225%22%3E%0A%0A%23%20how%20to%20recognize%20songs%20played%0A%3Cset%20ChartsRegexp%3D%22%28%3F%3Ais%20%29%3F%28%3F%3Anp%3A%7C%28%3F%3Anow%20%29%3Fplaying%3A%3F%20%7Clistening%20to%3A%3F%20%29%28%3F%3AMPEG%20stream%20from%29%3F%5Cs%2A%28.%2A%29%22%3E%0A%0A%23%20maximum%20number%20of%20words%20to%20show%0A%3Cset%20WordHistory%3D%2210%22%3E%0A%0A%23%20maximum%20number%20of%20nicks%20to%20show%20in%20%22Most%20referenced%20nicks%22%0A%3Cset%20NickHistory%3D%225%22%3E%0A%0A%23%20maximum%20number%20of%20smileys%20to%20show%20in%20smiley%20stats%0A%3Cset%20SmileyHistory%3D%2210%22%3E%0A%0A%23%20maximum%20number%20of%20nicks%20to%20show%20in%20%22Karma%22%0A%3Cset%20KarmaHistory%3D%225%22%3E%0A%0A%23%20track%20nick%20changes%20and%20create%20aliases%20-%20recommended%3A%20follow%20nick%20changes%20so%20Alice%2C%0A%23%20Alice_%20and%20Alice-%20count%20as%20one%20person%0A%3Cset%20NickTracking%3D%221%22%3E%0A%0A%23%20maximum%20number%20of%20nicks%20in%20lists%0A%3Cset%20NickLimit%3D%2210%22%3E%0A%0A%23%20sort%20%22most%20active%20nicks%22%20by%20words%0A%3Cset%20SortByWords%3D%220%22%3E%0A%0A%23%20----%20Picture%20options%20-------------------------------------------------------%0A%0A%23%20path%20to%20images%20on%20stats%20page%0A%3Cset%20PicLocation%3D%22.%22%3E%0A%0A%23%20number%20of%20user%20pictures%20per%20row%0A%3Cset%20UserPics%3D%221%22%3E%0A%0A%23%20path%20to%20user%20pictures%20%28HTML%20page%29%20-%20folder%20of%20user%20pictures%2C%20as%20seen%20by%20the%20web%20page%0A%23%3Cset%20ImagePath%3D%22images/%22%3E%0A%0A%23%20use%20a%20default%20user%20picture%20-%20picture%20shown%20for%20users%20who%20have%20none%0A%23%3Cset%20DefaultPic%3D%22images/nobody.png%22%3E%0A%0A%23%20path%20to%20user%20pictures%20%28output%20generation%29%20-%20folder%20of%20user%20pictures%2C%20as%20seen%20by%20pisg%0A%23%20%28for%20pic%3D%22x_%2A.jpg%22%20globs%29%0A%23%3Cset%20ImageGlobPath%3D%22/var/www/pisg/images/%22%3E%0A%0A%23%20define%20a%20standard%20width%20for%20user%20pictures%20-%20show%20every%20user%20picture%20this%20wide%2C%20in%0A%23%20pixels%0A%23%3Cset%20PicWidth%3D%2255%22%3E%0A%0A%23%20define%20a%20standard%20height%20for%20user%20pictures%20-%20show%20every%20user%20picture%20this%20tall%2C%20in%0A%23%20pixels%0A%23%3Cset%20PicHeight%3D%2255%22%3E%0A%0A%23%20----%20Misc%20options%20----------------------------------------------------------%0A%0A%23%20character%20set%20to%20use%20for%20stats%20page%20-%20recommended%3A%20UTF-8%20shows%20accents%2C%20emoji%20and%20non-%0A%23%20Latin%20scripts%20correctly%0A%3Cset%20Charset%3D%22utf-8%22%3E%0A%0A%23%20character%20set%20for%20logfiles%20-%20convert%20logs%20from%20this%20charset%20%28needs%20the%20Text%3A%3AIconv%0A%23%20perl%20module%29%0A%23%3Cset%20LogCharset%3D%22iso-8859-1%22%3E%0A%0A%23%20fallback%20character%20set%20for%20logfiles%20-%20used%20for%20lines%20that%20are%20not%20valid%20in%20LogCharset%0A%23%20%28needs%20Text%3A%3AIconv%29%0A%23%3Cset%20LogCharsetFallback%3D%22iso-8859-1%22%3E%0A%0A%23%20use%20a%20different%20time%20zone%20than%20the%20local%20machine%0A%3Cset%20TimeOffset%3D%22%2B0%22%3E%0A%0A%23%20use%20regular%20expressions%20in%20user%20aliases%0A%3Cset%20RegexpAliases%3D%220%22%3E%0A%0A%23%20filename%20of%20language%20file%0A%3Cset%20LangFile%3D%22lang.txt%22%3E%0A%0A%23%20path%20to%20directory%20with%20CSS%20files%0A%3Cset%20CssDir%3D%22layout/%22%3E%0A%0A%23%20colors%20for%20color%20gradient%20in%20most%20active%20nicks%20section%0A%3Cset%20HiCell%3D%22%23BABADD%22%3E%0A%3Cset%20HiCell2%3D%22%23CCCCCC%22%3E%0A%0A%23%20colors%20for%20color%20gradient%20in%20most%20active%20nicks%20section%0A%3Cset%20HiCell2%3D%22%23CCCCCC%22%3E%0A%0A%23%20dump%20raw%20statistics%20into%20file%20-%20debugging%3A%20dump%20the%20raw%20statistics%20to%20this%20file%0A%23%3Cset%20StatsDump%3D%22stats.dump%22%3E%0A%0A%23%20----%20Advanced%20%28not%20in%20the%20original%20documentation%29%20-------------------------%0A%0A%23%20nicks%20of%20bots%2C%20for%20log%20formats%20that%20cannot%20tell%20bots%20from%20people%20%28DCpp%29%0A%23%3Cset%20BotNicks%3D%22bot1%20bot2%22%3E%0A%0A%23%20width%20in%20pixels%20of%20the%20statistics%20tables%0A%3Cset%20TableWidth%3D%22574%22%3E%0A%0A%23%20image%20id%20of%20the%20horizontal%20bar%20for%20hours%200-5%0A%3Cset%20Pic_H_0%3D%22blue-h%22%3E%0A%0A%23%20image%20id%20of%20the%20horizontal%20bar%20for%20hours%206-11%0A%3Cset%20Pic_H_6%3D%22green-h%22%3E%0A%0A%23%20image%20id%20of%20the%20horizontal%20bar%20for%20hours%2012-17%0A%3Cset%20Pic_H_12%3D%22yellow-h%22%3E%0A%0A%23%20image%20id%20of%20the%20horizontal%20bar%20for%20hours%2018-23%0A%3Cset%20Pic_H_18%3D%22red-h%22%3E%0A%0A%23%20image%20id%20of%20the%20vertical%20bar%20for%20hours%200-5%0A%3Cset%20Pic_V_0%3D%22blue-v%22%3E%0A%0A%23%20image%20id%20of%20the%20vertical%20bar%20for%20hours%206-11%0A%3Cset%20Pic_V_6%3D%22green-v%22%3E%0A%0A%23%20image%20id%20of%20the%20vertical%20bar%20for%20hours%2012-17%0A%3Cset%20Pic_V_12%3D%22yellow-v%22%3E%0A%0A%23%20image%20id%20of%20the%20vertical%20bar%20for%20hours%2018-23%0A%3Cset%20Pic_V_18%3D%22red-v%22%3E%0A%0A%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20%20YOUR%20CHANNEL%20-%20copy%20this%20block%20for%20each%20extra%20channel%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0A%3Cchannel%3D%22%23example%22%3E%0A%20%20%23%20Logfile%3A%20the%20log%20to%20read%3B%20you%20can%20list%20several%20Logfile%20lines%20%20EDIT%0A%20%20Logfile%3D%22/path/to/example.log%22%0A%0A%20%20%23%20LogDir%3A%20use%20INSTEAD%20of%20Logfile%20to%20read%20a%20whole%20folder%20of%20dated%20logs%0A%20%20%23LogDir%3D%22/path/to/logs/%22%0A%0A%20%20%23%20LogPrefix%3A%20with%20LogDir%3A%20only%20read%20files%20starting%20with%20this%0A%20%20%23LogPrefix%3D%22example.log.%22%0A%0A%20%20%23%20LogSuffix%3A%20with%20LogDir%3A%20date%20format%20at%20the%20end%20of%20the%20file%20names%2C%20so%20they%20sort%20by%0A%20%20%23%20date%0A%20%20%23LogSuffix%3D%22.%25d%25b%25Y%22%0A%0A%20%20%23%20NFiles%3A%20with%20LogDir%3A%20only%20parse%20the%20newest%20N%20files%20%280%20%3D%20all%29%0A%20%20%23NFiles%3D%2230%22%0A%0A%20%20%23%20Format%3A%20your%20log%20format%3A%20eggdrop%2C%20mIRC%2C%20xchat%2C%20irssi%2C%20...%20%28see%20docs/FORMATS%29%20%20EDIT%0A%20%20Format%3D%22eggdrop%22%0A%0A%20%20%23%20Network%3A%20the%20IRC%20network%2C%20shown%20on%20the%20page%20%20EDIT%0A%20%20Network%3D%22ExampleNet%22%0A%0A%20%20%23%20OutputFile%3A%20the%20page%20pisg%20writes%20%20EDIT%0A%20%20OutputFile%3D%22/var/www/html/example.html%22%0A%0A%20%20%23%20OutputTag%3A%20replaces%20%25t%20in%20OutputFile%3B%20used%20with%20the%20-nf%20/%20-t%20command%20line%20options%0A%20%20%23OutputTag%3D%22-week%22%0A%0A%20%20%23%20Maintainer%3A%20who%20is%20named%20as%20maintainer%20on%20the%20page%20%20EDIT%0A%20%20Maintainer%3D%22Your%20Name%22%0A%0A%20%20%23%20LogType%3A%20only%20%22Logfile%22%20exists%2C%20leave%20it%0A%20%20LogType%3D%22Logfile%22%0A%0A%20%20%23%20Any%20global%20option%20can%20be%20overridden%20for%20this%20channel%20only%2C%20for%20example%3A%0A%20%20%23Lang%3D%22FR%22%0A%20%20%23ColorScheme%3D%22midnight%22%0A%3C/channel%3E%0A%0A%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20%20USERS%20-%20link%20nicks%20together%2C%20add%20pictures%2C%20mark%20bots%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20nick%20%20%20%20the%20name%20shown%20in%20the%20stats%20%28required%29%0A%23%20alias%20%20%20other%20nicks%20of%20the%20same%20person%2C%20space%20separated%3B%20%2A%20matches%20anything%0A%23%20%20%20%20%20%20%20%20%20%28Joe%2A%20also%20counts%20Joe_%2C%20Joe%5Eaway%20...%29.%20NickTracking%3D%221%22%20also%20finds%20many%0A%23%20pic%20%20%20%20%20picture%20shown%20next%20to%20the%20user%20%20%20%20%20%20bigpic%20%20larger%20picture%20it%20links%20to%0A%23%20link%20%20%20%20a%20web%20address%20or%20e-mail%20address%20%20%20%20%20%20sex%20%20%20%20%20m%2C%20f%20or%20b%20%28bot%29%0A%23%20ignore%20%20y%20%3D%20leave%20this%20nick%20out%20of%20the%20stats%20altogether%20%28for%20bots%29%0A%0A%3Cuser%20nick%3D%22Alice%22%20alias%3D%22Alice_%20Alice-%2A%20AliceAway%22%20pic%3D%22alice.png%22%20link%3D%22https%3A//example.com/alice%22%20sex%3D%22f%22%3E%0A%3Cuser%20nick%3D%22Bob%22%20alias%3D%22Bob_%20Bobby%22%20pic%3D%22bob.png%22%20bigpic%3D%22bob-big.png%22%20link%3D%22bob%40example.com%22%20sex%3D%22m%22%3E%0A%3Cuser%20nick%3D%22ChanBot%22%20sex%3D%22b%22%20ignore%3D%22y%22%3E%0A%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20%20LINKS%20-%20keep%20addresses%20out%20of%20%22Most%20referenced%20URLs%22%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%3Clink%20url%3D%22https%3A//example.com/spam%22%20ignore%3D%22y%22%3E%0A%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20%20INCLUDE%20-%20share%20users%20between%20channels%20or%20config%20files%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20Put%20your%20%3Cuser%3E%20lines%20in%20users.cfg%20and%20load%20them%20here%20%28an%20included%20file%20cannot%0A%23%20include%20another%20file%29%3A%0A%23%3Cinclude%3D%22users.cfg%22%3E%0A" download="pisg.cfg">Download</a>
  1739. <button class="btn copy" type="button" data-target="cfg-example">Copy</button></div>
  1740. <pre id="cfg-example" class="cfg"># pisg.cfg.example - a complete configuration for pisg, ready to copy.
  1741. #
  1742. # 1. Copy this file to pisg.cfg
  1743. # 2. Change the values marked EDIT (log path, format, network, output file, name)
  1744. # 3. Run ./pisg
  1745. #
  1746. # Every option pisg understands is listed below with its meaning. Options are set to
  1747. # pisg&#x27;s own default unless the comment says &quot;recommended&quot;. Lines starting with # are
  1748. # comments; an option shown commented out is off/unset - remove the # to use it.
  1749. #
  1750. # Syntax reminders:
  1751. # &lt;set Name=&quot;value&quot;&gt; a global option, applies to every channel
  1752. # &lt;channel=&quot;#name&quot;&gt; ... &lt;/channel&gt; settings for one channel (they override &lt;set&gt;)
  1753. # &lt;user nick=&quot;...&quot; ...&gt; per-user settings
  1754. # Each &lt;set&gt; must be on one line, and every value must be in quotes.
  1755. ##############################################################################
  1756. # GLOBAL OPTIONS - apply to every channel below
  1757. ##############################################################################
  1758. # ---- General options -------------------------------------------------------
  1759. # use a different color scheme for stats page - recommended: modern, light/dark theme;
  1760. # try midnight, amoled, terminal, canada, or default
  1761. &lt;set ColorScheme=&quot;modern&quot;&gt;
  1762. # alternate stylesheets for stats page - extra stylesheets the visitor can switch to
  1763. #&lt;set AltColorScheme=&quot;midnight.css amoled.css&quot;&gt;
  1764. # define the language / translation to use
  1765. &lt;set Lang=&quot;EN&quot;&gt;
  1766. # define a file as page header - HTML file inserted above the statistics
  1767. #&lt;set PageHead=&quot;header.html&quot;&gt;
  1768. # define a file as page footer - HTML file inserted below the statistics
  1769. #&lt;set PageFoot=&quot;footer.html&quot;&gt;
  1770. # make pisg silent, suppress messages
  1771. &lt;set Silent=&quot;0&quot;&gt;
  1772. # use a cache to speed up log parsing - cache parsed logs here to speed up runs (delete
  1773. # it when you change settings)
  1774. #&lt;set CacheDir=&quot;cache/&quot;&gt;
  1775. # name of the channel list file for a landing page
  1776. &lt;set ChannelIndex=&quot;channels.json&quot;&gt;
  1777. # adds a button at the top of every stats page that leads back to your landing page
  1778. &lt;set HomeLink=&quot;&quot;&gt;
  1779. # enable/disable the section bar at the top of the page
  1780. &lt;set ShowNavBar=&quot;1&quot;&gt;
  1781. # ---- Options for various statistics features -------------------------------
  1782. # number of days to show in &quot;Daily Actitity&quot; - recommended: show the last 14 days as a
  1783. # bar chart
  1784. &lt;set DailyActivity=&quot;14&quot;&gt;
  1785. # enable/disable &quot;Most Active Times&quot;
  1786. &lt;set ShowActiveTimes=&quot;1&quot;&gt;
  1787. # enable/disable &quot;Most Active Nicks&quot;
  1788. &lt;set ShowActiveNicks=&quot;1&quot;&gt;
  1789. # enable/disable &quot;Big Numbers&quot; sections
  1790. &lt;set ShowBigNumbers=&quot;1&quot;&gt;
  1791. # enable/disable &quot;Latest topics&quot; sections
  1792. &lt;set ShowTopics=&quot;1&quot;&gt;
  1793. # enable/disable &quot;number of lines&quot;
  1794. &lt;set ShowLines=&quot;1&quot;&gt;
  1795. # enable/disable &quot;words per line&quot; - recommended: also show words per line
  1796. &lt;set ShowWpl=&quot;1&quot;&gt;
  1797. # enable/disable &quot;characters per line&quot; - recommended: also show characters per line
  1798. &lt;set ShowCpl=&quot;1&quot;&gt;
  1799. # enable/disable &quot;number of words&quot; - recommended: also show total words
  1800. &lt;set ShowWords=&quot;1&quot;&gt;
  1801. # show when a user was last seen on a channel
  1802. &lt;set ShowLastSeen=&quot;1&quot;&gt;
  1803. # show when a nick was active
  1804. &lt;set ShowTime=&quot;1&quot;&gt;
  1805. # mIRCStats like behaviour of time bar
  1806. &lt;set ShowLineTime=&quot;0&quot;&gt;
  1807. # ShowLineTime like behavior of words column
  1808. &lt;set ShowWordTime=&quot;0&quot;&gt;
  1809. # enable or disable the random quotes
  1810. &lt;set ShowRandQuote=&quot;1&quot;&gt;
  1811. # enable or disable the legend of the time bars
  1812. &lt;set ShowLegend=&quot;1&quot;&gt;
  1813. # enable or disable the kick line
  1814. &lt;set ShowKickLine=&quot;1&quot;&gt;
  1815. # enable or disable the action line
  1816. &lt;set ShowActionLine=&quot;1&quot;&gt;
  1817. # enable or disable the shout line
  1818. &lt;set ShowShoutLine=&quot;1&quot;&gt;
  1819. # set how many decimals to show
  1820. &lt;set ShowFoulDecimals=&quot;1&quot;&gt;
  1821. # enable or disable the foul line
  1822. &lt;set ShowFoulLine=&quot;0&quot;&gt;
  1823. # enable or disable the violent lines
  1824. &lt;set ShowViolentLines=&quot;1&quot;&gt;
  1825. # enable or disable &quot;Most used words&quot;
  1826. &lt;set ShowMuw=&quot;1&quot;&gt;
  1827. # enable or disable &quot;Most referenced nicks&quot;
  1828. &lt;set ShowMrn=&quot;1&quot;&gt;
  1829. # enable or disable &quot;Most referenced URLs&quot;
  1830. &lt;set ShowMru=&quot;1&quot;&gt;
  1831. # enable or disable channel music charts
  1832. &lt;set ShowCharts=&quot;0&quot;&gt;
  1833. # enable or disable op statistics
  1834. &lt;set ShowOps=&quot;1&quot;&gt;
  1835. # enable or disable voice statistics
  1836. &lt;set ShowVoices=&quot;0&quot;&gt;
  1837. # enable or disable halfop statistics
  1838. &lt;set ShowHalfops=&quot;0&quot;&gt;
  1839. # show who changed nick most often - recommended: show who changed nick most often
  1840. &lt;set ShowMostNicks=&quot;1&quot;&gt;
  1841. # show stats on which gender talked most
  1842. &lt;set ShowActiveGenders=&quot;0&quot;&gt;
  1843. # show most used smileys - recommended: show the most used smileys
  1844. &lt;set ShowSmileys=&quot;1&quot;&gt;
  1845. # show channel karma - recommended: show karma (nick++ / nick--)
  1846. &lt;set ShowKarma=&quot;1&quot;&gt;
  1847. # show most active nicks by hour - recommended: show the most active nicks by time of
  1848. # day
  1849. &lt;set ShowMostActiveByHour=&quot;1&quot;&gt;
  1850. # only count stats for top talkers, ignore less-active users
  1851. &lt;set ShowOnlyTop=&quot;0&quot;&gt;
  1852. # show graphs in most active nicks by hour
  1853. &lt;set ShowMostActiveByHourGraph=&quot;1&quot;&gt;
  1854. # enable/disable the channel overview
  1855. &lt;set ShowOverview=&quot;1&quot;&gt;
  1856. # enable/disable the relation map and its tables
  1857. &lt;set ShowRelations=&quot;1&quot;&gt;
  1858. # number of nicks on the relation map
  1859. &lt;set RelationNicks=&quot;30&quot;&gt;
  1860. # minimum connection strength shown as a line on the relation map
  1861. &lt;set RelationMinWeight=&quot;3&quot;&gt;
  1862. # enable/disable the time personalities section
  1863. &lt;set ShowTimePersonalities=&quot;1&quot;&gt;
  1864. # enable/disable the &quot;who carries the channel&quot; section
  1865. &lt;set ShowConcentration=&quot;1&quot;&gt;
  1866. # enable/disable the signature words section
  1867. &lt;set ShowSignatureWords=&quot;1&quot;&gt;
  1868. # ignore specified words - words to leave out of the word statistics
  1869. #&lt;set IgnoreWords=&quot;badword otherword&quot;&gt;
  1870. # Control random quote output
  1871. &lt;set NoIgnoredQuotes=&quot;0&quot;&gt;
  1872. # specify words considered to be bad/FoulWords language
  1873. &lt;set FoulWords=&quot;ass fuck bitch shit scheisse scheiße kacke arsch ficker ficken schlampe&quot;&gt;
  1874. # specify words considered to be aggressive/violent
  1875. &lt;set ViolentWords=&quot;slaps beats smacks&quot;&gt;
  1876. # words that keep a URL out of the URL statistics - matched anywhere in a URL, any case;
  1877. # * = any characters, ? = one; for spam and unwanted image hosts
  1878. #&lt;set BadUrls=&quot;imagetwist imgur.com postimg.cc/*&quot;&gt;
  1879. # minimum numbers of letters for a random quote
  1880. &lt;set MinQuote=&quot;25&quot;&gt;
  1881. # maximum numbers of letters for a random quote
  1882. &lt;set MaxQuote=&quot;65&quot;&gt;
  1883. # minimum number of characters in an interesting word
  1884. &lt;set WordLength=&quot;5&quot;&gt;
  1885. # maximum allowed length of a &quot;word&quot; with no spaces
  1886. &lt;set QuoteWidth=&quot;80&quot;&gt;
  1887. # Minimum number of lines per user for some &quot;Big Numbers&quot; statistics
  1888. &lt;set BigNumbersThreshold=&quot;sqrt&quot;&gt;
  1889. # nicks to show in &quot;Most Active Nicks&quot;
  1890. &lt;set ActiveNicks=&quot;25&quot;&gt;
  1891. # nicks to show in &quot;These didn&#x27;t make it..&quot;
  1892. &lt;set ActiveNicks2=&quot;30&quot;&gt;
  1893. # number of nicks to show in &quot;Most Active Nicks By Hour&quot;
  1894. &lt;set ActiveNicksByHour=&quot;10&quot;&gt;
  1895. # maximum number of nicks to show in &quot;users with most nicknames&quot;
  1896. &lt;set MostNicksHistory=&quot;5&quot;&gt;
  1897. # show nicks used in &quot;most nicks&quot;
  1898. &lt;set MostNicksVerbose=&quot;1&quot;&gt;
  1899. # maximum number of topics to show - recommended: show the last 5 topics
  1900. &lt;set TopicHistory=&quot;5&quot;&gt;
  1901. # maximum number of URLs to show
  1902. &lt;set UrlHistory=&quot;5&quot;&gt;
  1903. # number of songs to show
  1904. &lt;set ChartsHistory=&quot;5&quot;&gt;
  1905. # how to recognize songs played
  1906. &lt;set ChartsRegexp=&quot;(?:is )?(?:np:|(?:now )?playing:? |listening to:? )(?:MPEG stream from)?\s*(.*)&quot;&gt;
  1907. # maximum number of words to show
  1908. &lt;set WordHistory=&quot;10&quot;&gt;
  1909. # maximum number of nicks to show in &quot;Most referenced nicks&quot;
  1910. &lt;set NickHistory=&quot;5&quot;&gt;
  1911. # maximum number of smileys to show in smiley stats
  1912. &lt;set SmileyHistory=&quot;10&quot;&gt;
  1913. # maximum number of nicks to show in &quot;Karma&quot;
  1914. &lt;set KarmaHistory=&quot;5&quot;&gt;
  1915. # track nick changes and create aliases - recommended: follow nick changes so Alice,
  1916. # Alice_ and Alice- count as one person
  1917. &lt;set NickTracking=&quot;1&quot;&gt;
  1918. # maximum number of nicks in lists
  1919. &lt;set NickLimit=&quot;10&quot;&gt;
  1920. # sort &quot;most active nicks&quot; by words
  1921. &lt;set SortByWords=&quot;0&quot;&gt;
  1922. # ---- Picture options -------------------------------------------------------
  1923. # path to images on stats page
  1924. &lt;set PicLocation=&quot;.&quot;&gt;
  1925. # number of user pictures per row
  1926. &lt;set UserPics=&quot;1&quot;&gt;
  1927. # path to user pictures (HTML page) - folder of user pictures, as seen by the web page
  1928. #&lt;set ImagePath=&quot;images/&quot;&gt;
  1929. # use a default user picture - picture shown for users who have none
  1930. #&lt;set DefaultPic=&quot;images/nobody.png&quot;&gt;
  1931. # path to user pictures (output generation) - folder of user pictures, as seen by pisg
  1932. # (for pic=&quot;x_*.jpg&quot; globs)
  1933. #&lt;set ImageGlobPath=&quot;/var/www/pisg/images/&quot;&gt;
  1934. # define a standard width for user pictures - show every user picture this wide, in
  1935. # pixels
  1936. #&lt;set PicWidth=&quot;55&quot;&gt;
  1937. # define a standard height for user pictures - show every user picture this tall, in
  1938. # pixels
  1939. #&lt;set PicHeight=&quot;55&quot;&gt;
  1940. # ---- Misc options ----------------------------------------------------------
  1941. # character set to use for stats page - recommended: UTF-8 shows accents, emoji and non-
  1942. # Latin scripts correctly
  1943. &lt;set Charset=&quot;utf-8&quot;&gt;
  1944. # character set for logfiles - convert logs from this charset (needs the Text::Iconv
  1945. # perl module)
  1946. #&lt;set LogCharset=&quot;iso-8859-1&quot;&gt;
  1947. # fallback character set for logfiles - used for lines that are not valid in LogCharset
  1948. # (needs Text::Iconv)
  1949. #&lt;set LogCharsetFallback=&quot;iso-8859-1&quot;&gt;
  1950. # use a different time zone than the local machine
  1951. &lt;set TimeOffset=&quot;+0&quot;&gt;
  1952. # use regular expressions in user aliases
  1953. &lt;set RegexpAliases=&quot;0&quot;&gt;
  1954. # filename of language file
  1955. &lt;set LangFile=&quot;lang.txt&quot;&gt;
  1956. # path to directory with CSS files
  1957. &lt;set CssDir=&quot;layout/&quot;&gt;
  1958. # colors for color gradient in most active nicks section
  1959. &lt;set HiCell=&quot;#BABADD&quot;&gt;
  1960. &lt;set HiCell2=&quot;#CCCCCC&quot;&gt;
  1961. # colors for color gradient in most active nicks section
  1962. &lt;set HiCell2=&quot;#CCCCCC&quot;&gt;
  1963. # dump raw statistics into file - debugging: dump the raw statistics to this file
  1964. #&lt;set StatsDump=&quot;stats.dump&quot;&gt;
  1965. # ---- Advanced (not in the original documentation) -------------------------
  1966. # nicks of bots, for log formats that cannot tell bots from people (DCpp)
  1967. #&lt;set BotNicks=&quot;bot1 bot2&quot;&gt;
  1968. # width in pixels of the statistics tables
  1969. &lt;set TableWidth=&quot;574&quot;&gt;
  1970. # image id of the horizontal bar for hours 0-5
  1971. &lt;set Pic_H_0=&quot;blue-h&quot;&gt;
  1972. # image id of the horizontal bar for hours 6-11
  1973. &lt;set Pic_H_6=&quot;green-h&quot;&gt;
  1974. # image id of the horizontal bar for hours 12-17
  1975. &lt;set Pic_H_12=&quot;yellow-h&quot;&gt;
  1976. # image id of the horizontal bar for hours 18-23
  1977. &lt;set Pic_H_18=&quot;red-h&quot;&gt;
  1978. # image id of the vertical bar for hours 0-5
  1979. &lt;set Pic_V_0=&quot;blue-v&quot;&gt;
  1980. # image id of the vertical bar for hours 6-11
  1981. &lt;set Pic_V_6=&quot;green-v&quot;&gt;
  1982. # image id of the vertical bar for hours 12-17
  1983. &lt;set Pic_V_12=&quot;yellow-v&quot;&gt;
  1984. # image id of the vertical bar for hours 18-23
  1985. &lt;set Pic_V_18=&quot;red-v&quot;&gt;
  1986. ##############################################################################
  1987. # YOUR CHANNEL - copy this block for each extra channel
  1988. ##############################################################################
  1989. &lt;channel=&quot;#example&quot;&gt;
  1990. # Logfile: the log to read; you can list several Logfile lines EDIT
  1991. Logfile=&quot;/path/to/example.log&quot;
  1992. # LogDir: use INSTEAD of Logfile to read a whole folder of dated logs
  1993. #LogDir=&quot;/path/to/logs/&quot;
  1994. # LogPrefix: with LogDir: only read files starting with this
  1995. #LogPrefix=&quot;example.log.&quot;
  1996. # LogSuffix: with LogDir: date format at the end of the file names, so they sort by
  1997. # date
  1998. #LogSuffix=&quot;.%d%b%Y&quot;
  1999. # NFiles: with LogDir: only parse the newest N files (0 = all)
  2000. #NFiles=&quot;30&quot;
  2001. # Format: your log format: eggdrop, mIRC, xchat, irssi, ... (see docs/FORMATS) EDIT
  2002. Format=&quot;eggdrop&quot;
  2003. # Network: the IRC network, shown on the page EDIT
  2004. Network=&quot;ExampleNet&quot;
  2005. # OutputFile: the page pisg writes EDIT
  2006. OutputFile=&quot;/var/www/html/example.html&quot;
  2007. # OutputTag: replaces %t in OutputFile; used with the -nf / -t command line options
  2008. #OutputTag=&quot;-week&quot;
  2009. # Maintainer: who is named as maintainer on the page EDIT
  2010. Maintainer=&quot;Your Name&quot;
  2011. # LogType: only &quot;Logfile&quot; exists, leave it
  2012. LogType=&quot;Logfile&quot;
  2013. # Any global option can be overridden for this channel only, for example:
  2014. #Lang=&quot;FR&quot;
  2015. #ColorScheme=&quot;midnight&quot;
  2016. &lt;/channel&gt;
  2017. ##############################################################################
  2018. # USERS - link nicks together, add pictures, mark bots
  2019. ##############################################################################
  2020. # nick the name shown in the stats (required)
  2021. # alias other nicks of the same person, space separated; * matches anything
  2022. # (Joe* also counts Joe_, Joe^away ...). NickTracking=&quot;1&quot; also finds many
  2023. # pic picture shown next to the user bigpic larger picture it links to
  2024. # link a web address or e-mail address sex m, f or b (bot)
  2025. # ignore y = leave this nick out of the stats altogether (for bots)
  2026. &lt;user nick=&quot;Alice&quot; alias=&quot;Alice_ Alice-* AliceAway&quot; pic=&quot;alice.png&quot; link=&quot;https://example.com/alice&quot; sex=&quot;f&quot;&gt;
  2027. &lt;user nick=&quot;Bob&quot; alias=&quot;Bob_ Bobby&quot; pic=&quot;bob.png&quot; bigpic=&quot;bob-big.png&quot; link=&quot;bob@example.com&quot; sex=&quot;m&quot;&gt;
  2028. &lt;user nick=&quot;ChanBot&quot; sex=&quot;b&quot; ignore=&quot;y&quot;&gt;
  2029. ##############################################################################
  2030. # LINKS - keep addresses out of &quot;Most referenced URLs&quot;
  2031. ##############################################################################
  2032. &lt;link url=&quot;https://example.com/spam&quot; ignore=&quot;y&quot;&gt;
  2033. ##############################################################################
  2034. # INCLUDE - share users between channels or config files
  2035. ##############################################################################
  2036. # Put your &lt;user&gt; lines in users.cfg and load them here (an included file cannot
  2037. # include another file):
  2038. #&lt;include=&quot;users.cfg&quot;&gt;
  2039. </pre>
  2040. </div>
  2041. </section>
  2042. </main>
  2043. <script>
  2044. document.querySelectorAll('.copy').forEach(function (b) {
  2045. b.addEventListener('click', function () {
  2046. var pre = document.getElementById(b.dataset.target), text = pre.textContent;
  2047. function done(ok) { var old = b.textContent; b.textContent = ok ? 'Copied!' : 'Press Ctrl+C';
  2048. setTimeout(function () { b.textContent = old; }, 1800); }
  2049. function fallback() { var r = document.createRange(); r.selectNodeContents(pre);
  2050. var s = window.getSelection(); s.removeAllRanges(); s.addRange(r);
  2051. var ok = false; try { ok = document.execCommand('copy'); } catch (e) {} done(ok); }
  2052. if (navigator.clipboard && window.isSecureContext) { navigator.clipboard.writeText(text).then(function () { done(true); }, fallback); }
  2053. else { fallback(); }
  2054. });
  2055. });
  2056. </script>
  2057. </body>
  2058. </html>