<?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/19830" />

	<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>2014-12-10T15:36:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bero93]]></name></author>
		<updated>2014-12-10T15:36:20-04:00</updated>

		<published>2014-12-10T15:36:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103358#p103358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103358#p103358"/>
		<title type="html"><![CDATA[log user text to file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103358#p103358"><![CDATA[
Thanks!<br>i'm sure the script is not bug free, it's just a beginning.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12466">bero93</a> — Wed Dec 10, 2014 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-12-10T15:22:18-04:00</updated>

		<published>2014-12-10T15:22:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103357#p103357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103357#p103357"/>
		<title type="html"><![CDATA[Try this.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103357#p103357"><![CDATA[
This would be the bare minimum for logging all lines that trigger this process.<br>This patch does not address any of the existing errors/issues in the original code.<br><div class="codebox"><p>Code: </p><pre><code>set Ban "Ban voor vloeken"set flag1 Yset flag2 Eset flag3 G###The bad words add and remove as you please bind pubm - "hoer" badword bind pubm - "*blaat*" badword bind pubm - "*cock*" badword bind pubm - "*kut*" badword bind pubm - "kut" badword bind pubm - "gvd" badword bind pubm - "godverdomme" badword bind pubm - "*kanker*" badword bind pubm - "kanker" badword bind pubm - "heil" badword proc badword {nick uhost hand chan rest} {  putlog "$nick $uhost $hand $chan $rest"  global botnick ban-time Ban bword  set open [open badword.log a]   puts $open "[strftime "%d-%m-%Y \[%T\]"] &lt;$nick&gt; $rest"   close $open   if {([ matchattr $hand f ])} {    putserv "PRIVMSG $chan :\001$nick is NIET meer welkom hier!\001"    return 1  } elseif {([matchattr $hand G])} {    chattr $nick +dk    setuser $nick COMMENT "Permanente ban wegens vloeken."    putserv "PRIVMSG $chan :$nick, je bent NIET meer welkom hier!..."    putserv "KICK $chan $nick :$Ban \[Perm\]"    return 1  } elseif {([matchattr $hand E])} {    chattr $nick +G-E    putserv "PRIVMSG $chan :$nick, je hebt nu je kansen gehad. Je mag 24 uur afkoelen. Nog een keer vloeken? Dan ben je niet  meer welkom!."    set banlamer [maskhost [getchanhost $nick $chan]]    newban $banlamer Badword $Ban 1440  none    setuser $nick COMMENT "3e keer vloeken, 24uur ban"    return 1  } elseif {([matchattr $hand Y])} {    chattr $nick +E-Y    putserv "PRIVMSG $chan :Dat is de 2e keer dat je vloekt, $nick. Je mag een uurtje afkoelen."    set banlamer [maskhost [getchanhost $nick $chan]]    newban $banlamer Badword $Ban 10 none    setuser $nick COMMENT "2x vloeken 60 min.ban"    return 1  }   adduser $nick [maskhost [getchanhost $nick $chan]]  putserv "PRIVMSG $chan :\001ACTION Vloeken is niet toegestaan $nick! De volgende keer krijg je een van van een uur!\001"  putserv "KICK $chan $nick :2e keer vloeken is een uur brommen"  putserv "NOTICE $nick :Vloeken is niet toegestaan in $chan"  putserv "NOTICE $nick :Nog een keer vloeken is een uur brommen"  chattr $nick +Y  setuser $nick PASS $bword   setuser $nick COMMENT "Eerste vloek overtreding"  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Dec 10, 2014 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bero93]]></name></author>
		<updated>2014-12-10T08:33:45-04:00</updated>

		<published>2014-12-10T08:33:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103356#p103356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103356#p103356"/>
		<title type="html"><![CDATA[log user text to file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103356#p103356"><![CDATA[
thanks for reply.<br>The code is part Dutch, but should not be a problem.<br><div class="codebox"><p>Code: </p><pre><code>set Ban "Ban voor vloeken"set flag1 Yset flag2 Eset flag3 G###The bad words add and remove as you please bind pubm - "hoer" badword bind pubm - "*blaat*" badword bind pubm - "*cock*" badword bind pubm - "*kut*" badword bind pubm - "kut" badword bind pubm - "gvd" badword bind pubm - "godverdomme" badword bind pubm - "*kanker*" badword bind pubm - "kanker" badword bind pubm - "heil" badword proc badword {nick uhost hand chan rest} {putlog "$nick $uhost $hand $chan $rest"  global botnick ban-time Ban bword    if {([ matchattr $hand f ])} {      putserv "PRIVMSG $chan :\001$nick is NIET meer welkom hier!\001"        return 1} elseif {([matchattr $hand G])} {          chattr $nick +dk  setuser $nick COMMENT "Permanente ban wegens vloeken."          putserv "PRIVMSG $chan :$nick, je bent NIET meer welkom hier!..."  putserv "KICK $chan $nick :$Ban \[Perm\]"        return 1} elseif {([matchattr $hand E])} {  chattr $nick +G-E  putserv "PRIVMSG $chan :$nick, je hebt nu je kansen gehad. Je mag 24 uur afkoelen. Nog een keer vloeken? Dan ben je niet  meer welkom!."          set banlamer [maskhost [getchanhost $nick $chan]]          newban $banlamer Badword $Ban 1440  none          setuser $nick COMMENT "3e keer vloeken, 24uur ban"          return 1} elseif {([matchattr $hand Y])} {  chattr $nick +E-Y  putserv "PRIVMSG $chan :Dat is de 2e keer dat je vloekt, $nick. Je mag een uurtje afkoelen."  set banlamer [maskhost [getchanhost $nick $chan]]          newban $banlamer Badword $Ban 10 none          setuser $nick COMMENT "2x vloeken 60 min.ban"          return 1}           adduser $nick [maskhost [getchanhost $nick $chan]]          putserv "PRIVMSG $chan :\001ACTION Vloeken is niet toegestaan $nick! De volgende keer krijg je een van van een uur!\001"          putserv "KICK $chan $nick :2e keer vloeken is een uur brommen"          putserv "NOTICE $nick :Vloeken is niet toegestaan in $chan"          putserv "NOTICE $nick :Nog een keer vloeken is een uur brommen"          chattr $nick +Y          setuser $nick PASS $bword           setuser $nick COMMENT "Eerste vloek overtreding"          return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12466">bero93</a> — Wed Dec 10, 2014 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-12-10T01:50:17-04:00</updated>

		<published>2014-12-10T01:50:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103355#p103355</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103355#p103355"/>
		<title type="html"><![CDATA[log user text to file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103355#p103355"><![CDATA[
Yes it is possible. The exact code required may vary slightly depending on the script used.  Post the script here so we can see what you're working with.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Dec 10, 2014 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bero93]]></name></author>
		<updated>2014-12-09T11:38:22-04:00</updated>

		<published>2014-12-09T11:38:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103352#p103352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103352#p103352"/>
		<title type="html"><![CDATA[log user text to file?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103352#p103352"><![CDATA[
Hi there, i have a 'bad word script' running<br>and i want to log the line the user sad to a textfile,<br>so it will look like something like this:<br><br>09-12-2014 [20:23:22] &lt;Monkeyboy&gt; uncle [censored]<br><br>is this possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12466">bero93</a> — Tue Dec 09, 2014 11:38 am</p><hr />
]]></content>
	</entry>
	</feed>
