<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21055" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2021-09-29T11:23:53-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21055</id>

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-09-29T11:23:53-04:00</updated>

		<published>2021-09-29T11:23:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110370#p110370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110370#p110370"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110370#p110370"><![CDATA[
thanks SPike^^ and CrazyCat seems to work as desired<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Sep 29, 2021 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-09-29T10:09:30-04:00</updated>

		<published>2021-09-29T10:09:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110368#p110368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110368#p110368"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110368#p110368"><![CDATA[
after having close the file, before the } closing the if:<br><div class="codebox"><p>Code: </p><pre><code>set quitwords {  "G-lined"}bind sign - * quit:checkproc quit:check {nick uhost hand chan reason} {    foreach quitmatch $::quitwords {        if {([string match -nocase *$quitmatch* $reason])} {           set openfile [open quits.log a]           puts $openfile "[ctime [unixtime]] - $nick $uhost $reason"           close $openfile           return      }  }}</code></pre></div>Note that you used "global quitwords" but after you use $::quitwords, the global is useless<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Sep 29, 2021 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-09-29T10:01:02-04:00</updated>

		<published>2021-09-29T10:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110367#p110367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110367#p110367"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110367#p110367"><![CDATA[
tried your suggestion seems to work well thanks Spike^^<br><br><br><br><blockquote class="uncited"><div>just a small idea: add a return after having write: without it, if you have several words matching, you'll have a line per word in your logfile</div></blockquote>not sure what you mean CrazyCat ?<br><br>u mean : puts $openfile "[ctime [unixtime]] - $nick $uhost $reason" ; return<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Sep 29, 2021 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-09-29T09:51:25-04:00</updated>

		<published>2021-09-29T09:51:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110366#p110366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110366#p110366"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110366#p110366"><![CDATA[
just a small idea: add a return after having write: without it, if you have several words matching, you'll have a line per word in your logfile<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Sep 29, 2021 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-09-29T09:42:15-04:00</updated>

		<published>2021-09-29T09:42:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110365#p110365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110365#p110365"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110365#p110365"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set openfile [open quits.log a]puts $openfile "[ctime [unixtime]] - $nick $uhost $reason"close $openfile</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Sep 29, 2021 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-09-29T09:13:32-04:00</updated>

		<published>2021-09-29T09:13:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110364#p110364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110364#p110364"/>
		<title type="html"><![CDATA[Storing date, nick host and reason of quit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110364#p110364"><![CDATA[
greetz gents,<br><br>i wanted to store on new line date , nick , host and the quit message on certain <br>words detected in the quit message in this case spam message<br><br>i managed to get the words to search for and all (wich i took from another tcl script that was premade for quit message spam) just the part to store the above info in a text file i struggle with<br><br>heres what i have so far:<br><br><div class="codebox"><p>Code: </p><pre><code>set quitwords {  "G-lined"}bind sign - * quit:checkproc quit:check {nick uhost hand chan reason} {  global quitwords     foreach quitmatch $::quitwords {        if {([string match -nocase *$quitmatch* $reason])} {         ***** store DATE, $nick, $uhost and $reason of quit in a text file *****      }  }} </code></pre></div><br>the idea is to check for the text file glined-spam.txt if it exists and if it does to write the above info to it and if it doesnt exist to create the file  and write above info to it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Sep 29, 2021 9:13 am</p><hr />
]]></content>
	</entry>
	</feed>
