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

	<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-02-19T15:50:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-19T15:21:10-04:00</updated>

		<published>2021-02-19T15:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109414#p109414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109414#p109414"/>
		<title type="html"><![CDATA[Amount of Warnings before action option]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109414#p109414"><![CDATA[
Ok cheers CrazyCat, will do that right away  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Feb 19, 2021 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-02-18T18:37:29-04:00</updated>

		<published>2021-02-18T18:37:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109413#p109413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109413#p109413"/>
		<title type="html"><![CDATA[Amount of Warnings before action option]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109413#p109413"><![CDATA[
That's the way I would do it.<br><br>Just think about two detals:<br>- set the warn variable global (or use ::warn)<br>- check if warn($host) exists before increment it (positive or negative)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Feb 18, 2021 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-19T15:50:18-04:00</updated>

		<published>2021-02-18T18:16:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109412#p109412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109412#p109412"/>
		<title type="html"><![CDATA[Amount of Warnings before action option]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109412#p109412"><![CDATA[
Nevermind  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Found a way<br><div class="codebox"><p>Code: </p><pre><code>#Badwordsset swearwords {"*[censored]*""*wank*""*pussy*""*[censored]*"}#Time until reset warningsset brd "30"#max warningset maxwarning "5"###########Code############setudef flag ctswearbind pubm - * ctswear:pubproc ctswear:pub {nick host hand chan text} {global swearwords brd maxwarning warnif {[channel get $chan ctswear]} {foreach badword $swearwords { if {[string match -nocase $badword $text]} {incr warn($host) +1if{![info exists warn]} {return}if {![$warn($host) == $maxwarning]} {putserv "NOTICE $nick :Warning! Do not Swear on $chan, cease immediately or else"utimer $brd {incr warn($host) -1 }} else {putserv "kick $nick $chan Kickbanned from $chan : Reason: Use of swear word $badword"set warn($host) "0"    }   }  } }}</code></pre></div>If anyone knows of a better way of doing this, do share <br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br><br>EDIT: Fixed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Feb 18, 2021 6:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-18T17:42:21-04:00</updated>

		<published>2021-02-18T17:42:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109411#p109411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109411#p109411"/>
		<title type="html"><![CDATA[Amount of Warnings before action option]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109411#p109411"><![CDATA[
So i was wondering how to make it a user can choose how many warnings until kicking<br><div class="codebox"><p>Code: </p><pre><code>#Badwordsset swearwords {"*[censored]*""*wank*""*pussy*""*[censored]*"}#Time until reset warningsset brd "30"###########Code############setudef flag ctswearbind pubm - * ctswear:pubbind ctcp - ACTION ctswear:actproc ctswear:pub {nick host hand chan text} {global swearwords brdif {[channel get $chan ctswear]} {foreach badword $swearwords { if {[string match -nocase $badword $text]} {incr warn +1if {$warn($host) == "1"} {putserv "NOTICE $nick :Warning! Do not Swear on $chan, cease immediately or else"utimer $brd {set warn "0"}} elseif {$warn($host) == "2"} {utimer $brd {set warn "1"}putserv "NOTICE $nick :Warning! Do not swear on $chan, cease immediately or else"} elseif {$warn($host) == "3"} { putserv "kick $nick $chan Kickbanned from $chan : Reason: Use of swear word $badword"set warn($host) "0"    }   }  } }}</code></pre></div>so like<br><div class="codebox"><p>Code: </p><pre><code>set warnings "5"</code></pre></div>will allow 5 of<div class="codebox"><p>Code: </p><pre><code>putserv "NOTICE $nick :Warning! Do not swear on $chan, cease immediately or else"</code></pre></div>Before doing<div class="codebox"><p>Code: </p><pre><code>putserv "kick $nick $chan Kickbanned from $chan : Reason: Use of swear word $badword"</code></pre></div>Any ideas and help is much appreciated  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Feb 18, 2021 5:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
