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

	<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>2002-09-18T06:04:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-18T06:04:41-04:00</updated>

		<published>2002-09-18T06:04:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11057#p11057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11057#p11057"/>
		<title type="html"><![CDATA[User CTCP finger reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11057#p11057"><![CDATA[
This will be because of this line<div class="codebox"><p>Code: </p><pre><code>set nv_versions {"n/a"}</code></pre></div>In Tcl you, you can ,anualy create lists using the {} braces.<br><br>As such, the contents of this list is<blockquote class="uncited"><div>"n/a"</div></blockquote>Including the "'s.<br><br>You should change this value to a simple {n/a} or the more character safe {{n/a}}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 18, 2002 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-18T05:48:58-04:00</updated>

		<published>2002-09-18T05:48:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11056#p11056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11056#p11056"/>
		<title type="html"><![CDATA[User CTCP finger reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11056#p11056"><![CDATA[
## Punish the people who have one of the following words in the ctcp-version reply.<br>set nv_versions {"n/a"} <br><br>## Ask ctcp-version if user joins one of these channels.<br># Note: Set this to "" to enable punishing on all channels.<br>set nv_chans "#chan"<br><br>## [0/1] If user has a lame IRC-client/script then punish him/her only on $nv_chans?<br># Note: If this is set to 0 then the bot punish user on all channels where the bot and the user are.<br>set nv_onlynvchans 1<br><br>## What is the reason for the punishment?<br>set nv_reason "!Possible \002spam drone\002 has been detected!"<br><br>## [0/1] Kick the user?<br>set nv_kick 1<br><br>## [0/1] Give the user a warning?<br>set nv_givewarning 0<br><br>## Give what kind of warning?<br>set nv_warning "User has been banned from the channel"<br><br>## [0/1] Ban the user?<br>set nv_ban 1<br><br>## Ban for how long time (min)?<br>set nv_bantime 1200<br><br>## [0/1] Ignore the user?<br>set nv_ignore 0<br><br>## Ignore for how long time (min)?<br>set nv_ignoretime 0<br><br>## What users can use the nvcheck command?<br>set nv_chkflag "m"<br><br>## Don't ask ctcp-version from the users with the following global flags. <br>set nv_globflags "m n o b"<br><br>## Don't ask ctcp-version from the users with the following channel flags.<br>set nv_chanflags "m n o"<br><br>###### You don't need to edit below this ######<br><br>### Bindings ###<br><br>bind join - * join:nv_askver<br>bind ctcr - FINGER ctcr:nv_ctcp<br>bind notc - * notc:nv_notice<br>bind dcc $nv_chkflag nvcheck dcc:nvcheck<br><br>### Main Procs ###<br><br>proc join:nv_askver {nick uhost hand chan} {<br>global botnick nv_chans nv_globflags nv_chanflags<br>if {[string tolower $nick] != [string tolower $botnick]} {<br><br><br><br><br>foreach globflag $nv_globflags { if {[matchattr $hand $globflag]} { return 1 } }<br>foreach chanflag $nv_chanflags { if {[matchattr $hand |$chanflag $chan]} { return 1 } }<br>if {($nv_chans == "") || ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] != -1)} {<br>putserv "PRIVMSG $nick :\001FINGER\001"<br>}<br>}<br>}<br><br>proc ctcr:nv_ctcp {nick uhost hand dest key arg} {<br>global botnick nv_versions nv_globflags nv_chanflags<br>if {[string tolower $nick] != [string tolower $botnick]} {<br>foreach version $nv_versions {<br>if {[string match "*[string tolower $version]*" [string tolower $arg]]} { <br>nv_punish $nick $uhost <br>}<br>}<br>}<br>}<br><br>proc notc:nv_notice {nick uhost hand text {dest ""}} {<br>global botnick nv_versions nv_globflags nv_chanflags<br>if {$dest == ""} { set dest $botnick }<br>if {([string tolower $nick] != [string tolower $botnick]) &amp;&amp; ([string match "*version*" [lindex [string tolower $text] 0]])} {<br>foreach version $nv_versions {<br>if {[string match "*[string tolower $version]*" [lrange [string tolower $text] 1 end]]} { <br>nv_punish $nick $uhost <br>}<br>}<br>}<br>}<br><br>proc dcc:nvcheck {hand idx arg} {<br>set target [lindex [split $arg] 0]<br>putcmdlog "#$hand# nvcheck $arg"<br>if {$target == ""} {<br>putidx $idx "Usage: .nvcheck &lt;nick|channel&gt;"<br>} else {<br>putidx $idx "Asking ctcp-finger from $target..."<br>putserv "PRIVMSG $target :\001FINGER\001"<br>}<br>}<br><br>### Other Procs ###<br><br>proc nv_punish {nick uhost} {<br>global botnick nv_chans nv_onlynvchans nv_reason nv_kick nv_givewarning nv_warning nv_ban nv_bantime nv_ignore nv_ignoretime<br>set hostmask "*!*[string range $uhost [string first "@" $uhost] end]"<br>set dowhat ""<br>if {[string tolower $nick] != [string tolower $botnick]} {<br>if {$nv_givewarning} {<br>lappend dowhat "giving warning"<br>putserv "NOTICE $nick :$nv_warning" <br>}<br>if {($nv_ignore) &amp;&amp; (![isignore $hostmask])} { <br>lappend dowhat "ignoring"<br>newignore $hostmask $botnick $nv_reason $nv_ignoretime <br>}<br>foreach chan [channels] {<br>if {($nv_onlynvchans) &amp;&amp; ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] == -1)} { continue }<br>if {($nv_ban) &amp;&amp; (![isban $hostmask $chan]) &amp;&amp; ([onchan $nick $chan])} {<br>if {![string match "*banning*" $dowhat]} { lappend dowhat "banning" }<br>newchanban $chan $hostmask $botnick $nv_reason $nv_bantime <br>}<br>if {($nv_kick) &amp;&amp; ([botisop $chan]) &amp;&amp; ([onchan $nick $chan])} { <br>if {![string match "*kicking*" $dowhat]} { lappend dowhat "kicking" }<br>putserv "KICK $chan $nick :$nv_reason" <br>}<br>}<br>if {$dowhat != ""} {<br>set dowhat "-- [join $dowhat " &amp; "]"<br>}<br>putlog "noversions: $nick ($uhost) is using lame spam drone/script $dowhat"<br>}<br>}<br><br>### End ###<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Wed Sep 18, 2002 5:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-18T05:11:42-04:00</updated>

		<published>2002-09-18T05:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11052#p11052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11052#p11052"/>
		<title type="html"><![CDATA[User CTCP finger reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11052#p11052"><![CDATA[
Can you paste the script, as both the CTCP binds work correclty here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 18, 2002 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-17T18:31:25-04:00</updated>

		<published>2002-09-17T18:31:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11028#p11028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11028#p11028"/>
		<title type="html"><![CDATA[User CTCP finger reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11028#p11028"><![CDATA[
Hi, I've noticed weird thing, this is from mirc:<br>-&gt; [ctcp(adeline244)] FINGER<br>*** CTCP FINGER reply from adeline244: n/a<br>and eggdrop<br>(bot) Asking ctcp-finger from adeline244...<br>(bot) [00:26] CTCP reply FINGER: from adeline244 (~ident@172.134.160.147) to bot.<br>Finger reply is "n/a" and bot didn't get this, it's not script's fault, I've tried manually. I'd like bot get even n/a finger reply, it's common finger reply of spam drones.<br><br>Thanks for any info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Tue Sep 17, 2002 6:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
