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

	<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>2012-04-29T06:30:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[erotism]]></name></author>
		<updated>2012-04-29T06:30:12-04:00</updated>

		<published>2012-04-29T06:30:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99289#p99289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99289#p99289"/>
		<title type="html"><![CDATA[TCM.tcl help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99289#p99289"><![CDATA[
Here si code who I want to modify..<br><div class="codebox"><p>Code: </p><pre><code>proc *raw:cmds {from key arg} {  global botnick servername ochan klist u_cflood c_kreason c_ktime c_kcount host whatdoing host  if {$from != $servername} { return 0 }    if {[lindex $arg 2] == "Oper" &amp;&amp; [lindex $arg 3] == "privs"} {    putquick "STATS c"      putquick "STATS v"    putquick "STATS p"    putquick "STATS o"    return 0  }  if {[lindex $arg 5] == "Flooder" &amp;&amp; [lindex $arg 4] == "Possible"} {    set fnick [lindex $arg 5]    set fhost [lindex $arg 6]    set onserver [lindex $arg 8]    set target [lindex $arg 10]set whatdoing [lrange $arg 4 end]    set host "[lindex [split "[lindex $arg 6]" "\[\]"]&gt;-1]"putquick "PRIVMSG $ochan :$whatdoing"    if {[lsearch -glob [string tolower $host] "*server.com"]&gt;-1} {return 0}    if {[lsearch -glob [string tolower $host] "*111.222.333.444"]&gt;-1} {return 0}    if {[lsearch -glob [string tolower $host] "*server1.com*"]&gt;-1} {return 0}    scan $fhost "%\[^@]@%s" trash uhost    scan $uhost "%\[^]]]%s" host trash    if {[regexp -nocase $host $klist]} {      return 0    } else {      set klist "$klist $host"      timer 10 "remove_kline $host"    }    putlog "KLINE 10 *@$host :$fnick $fhost Stop flooding, please!"  }}</code></pre></div>On flood I received snotice:<br><div class="codebox"><p>Code: </p><pre><code>(13:10:56) -irc.server.com- *** Notice -- Possible Flooder nick[~ident@host] on irc.server.com target: #channel</code></pre></div>How to make a bot to take nick ident and host from servernotice and set them as $fnick $fident and $fhost, and..<br><div class="codebox"><p>Code: </p><pre><code>putlog "KLINE 10 *@$host :$fnick $fhost Stop flooding, please!"</code></pre></div>becoming..<br><div class="codebox"><p>Code: </p><pre><code>putlog "Flooder Nick: $fnick"putlog "Flooder Identd: $fident"putlog "Flooder Host: $fhost"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11311">erotism</a> — Sun Apr 29, 2012 6:30 am</p><hr />
]]></content>
	</entry>
	</feed>
