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

	<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>2004-02-10T13:06:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-10T13:06:19-04:00</updated>

		<published>2004-02-10T13:06:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33440#p33440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33440#p33440"/>
		<title type="html"><![CDATA[nospam1.7.2.tcl modification help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33440#p33440"><![CDATA[
Move the "set when [strftime "%D %r"]" before the "switch $type {" and should be working..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 10, 2004 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-02-10T04:12:46-04:00</updated>

		<published>2004-02-10T04:12:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33425#p33425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33425#p33425"/>
		<title type="html"><![CDATA[nospam1.7.2.tcl modification help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33425#p33425"><![CDATA[
you are using it before it is set<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Feb 10, 2004 4:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-02-09T18:08:45-04:00</updated>

		<published>2004-02-09T18:08:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33418#p33418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33418#p33418"/>
		<title type="html"><![CDATA[nospam1.7.2.tcl modification help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33418#p33418"><![CDATA[
little help pls<br><blockquote class="uncited"><div>&lt;caron&gt; WOOOAAA OMG WOW LIKE SWEET!!! DO THIS GUYS!!! /join #2,000<br><br>[22:06:05] &lt;Natsuki-Chan&gt; [22:06] Tcl error [msgs:abuse]: can't read "when": no such variable<br>[22:06:05] &lt;Natsuki-Chan&gt; [22:06] #catgirls: mode change '+b *!*caron@*.adelphia.net' by Natsuki-Chan!~<a href="mailto:Natsuki@spc1-ward1-6-0-cust180.manc.broadband.ntl.com">Natsuki@spc1-ward1-6-0-cust180.manc.broadband.ntl.com</a><br></div></blockquote>i dont understand why $when: doesnt work. the code is identical to the stuff above<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Mon Feb 09, 2004 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-02-09T15:38:19-04:00</updated>

		<published>2004-02-09T15:38:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33407#p33407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33407#p33407"/>
		<title type="html"><![CDATA[nospam1.7.2.tcl modification help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33407#p33407"><![CDATA[
Hey<br><br>A few of us on aniverse irc are using this script in order to help catch and gline spammers on the network. The new system operates by messages being sent to #nospam when someone is kicked so they can be dealt with. The channel is -n which allows private messages form outside the channel to be put into the channel. <br><br>Is there something i can add to this script to allow the bot to report when a spammer hits the channels the bot operates on. If possible, with the format<br><br>&lt;time&gt; &lt;date&gt; &lt;channel&gt; &lt;spammer nick&gt; &lt;spammer host&gt; &lt;spammer message&gt; <br><br>Best place i think for the code to act is in the Spammer logger section of the script<br><div class="codebox"><p>Code: </p><pre><code>proc sl_write {type who where what why} {  global spam-log spam-log-file  if {${spam-log}} {    set file [open ${spam-log-file} a+]    set when [strftime "%D %r"]    switch $type {      c {puts $file "$when: $who said: (#$why) $what in: $where"}      d {puts $file "$when: $who was sending: $what to people in: $where"}      i {puts $file "$when: $who invited me to: $where"}      m {puts $file "$when: $who messaged me with: (#$why) $what"}      n {if {![string length $where]} {set where "me"} ; puts $file "$when: $who noticed: $where with: (#$why) $what"}      p {puts $file "$when: $who parted from: $where with: (#$why) $what"}    }    close $file  }}</code></pre></div>Any help regarding this would be wonderful. The script was created by ppslim and is at <a href="http://sourceforge.net/projects/no-spam/" class="postlink">http://sourceforge.net/projects/no-spam/</a>.<br><br><br>Edit, ok we tried this to add the feature<br><div class="codebox"><p>Code: </p><pre><code>  if {${spam-log}} {  switch $type {  c {putserv "PRIVMSG #nospam :$when: $who said (#$why) $what in: $where"}  d {putserv "PRIVMSG #nospam :$when: $who was sending: $what to people in: $where"}  i {putserv "PRIVMSG #nospam :$when: $who invited me to: $where"}  m {putserv "PRIVMSG #nospam :$when: $who messaged me with: (#$why) $what"}  n {if {!string length $where]} {set where "me"} ; putserv "PRIVMSG #nospam :$when: $who noticed$  p {putserv "PRIVMSG #nospam :$when: $who parted from: $where with: (#$why) $what"}}    set file [open ${spam-log-file} a+]    set when [strftime "%D %r"]    switch $type {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Mon Feb 09, 2004 3:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
