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

	<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>2011-09-12T23:47:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demetrius_reis]]></name></author>
		<updated>2011-09-12T23:47:07-04:00</updated>

		<published>2011-09-12T23:47:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97721#p97721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97721#p97721"/>
		<title type="html"><![CDATA[ctcpversion error to ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97721#p97721"><![CDATA[
corrigido !!<br>tks <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=11312">demetrius_reis</a> — Mon Sep 12, 2011 11:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-09-12T05:43:20-04:00</updated>

		<published>2011-09-12T05:43:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97716#p97716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97716#p97716"/>
		<title type="html"><![CDATA[ctcpversion error to ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97716#p97716"><![CDATA[
Didn't look too deep into it, but the first thing that strikes me; the actual kick command has been commented out..<div class="codebox"><p>Code: </p><pre><code>...            if {![string match "*GLINING*" $dowhat]} { lappend dowhat "glining" }#            putserv "KICK $nick $bv_reason"...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Sep 12, 2011 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demetrius_reis]]></name></author>
		<updated>2011-09-11T21:16:12-04:00</updated>

		<published>2011-09-11T21:16:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97714#p97714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97714#p97714"/>
		<title type="html"><![CDATA[ctcpversion error to ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97714#p97714"><![CDATA[
The script below is the function of checking in without pre channel input, what version you are using is different and if he will ban.<br><br>But he is not banning, what is the error? Someone please help! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><div class="codebox"><p>Code: </p><pre><code># Current DCC Commands:#    .bvcheck &lt;nick|channel&gt;#### Settings ##### Punir as pessoas que têm uma das seguintes palavras na resposta ctcp version.set bv_versions {"HJF2XCAR3D"}## canal.set bv_chans "#age_2_ops"## [0/1] Banir de todos os canais, ou apenas $bv_chans?set bv_onlynvchans 1## Motivo do ban ?set bv_reason "Bem vindo ao Zone.AgeMania !!!"## [0/1] GLine the user?set bv_gline 0## tempo em minutos do ban?set bv_bantime 1## Quais users podem usar o comando nvcheck ?set bv_chkflag "nm"## Não pedir ctcp versão para: Owner, Masters, Bots e OPs (flags globais)##set bv_globflags "m n o b"## Não pedir ctcp versão para: Owner, Masters, OPs (flags para canais)##set bv_chanflags "m n o"###### DONT`T FLIPPIN` EDIT ANYTHING BELOW HERE ######### Misc Things ###set bv_ver "0.69"### Bindings ###bind join - * join:bv_askverbind ctcr - VERSION ctcr:bv_ctcpbind notc - * notc:bv_noticebind dcc $bv_chkflag nvcheck dcc:nvcheck### Main Procs ###proc join:bv_askver {nick uhost hand chan} {global botnick bv_chans bv_globflags bv_chanflagsif {[string tolower $nick] != [string tolower $botnick]} {foreach globflag $bv_globflags { if {[matchattr $hand $globflag]} { return 1 } }foreach chanflag $bv_chanflags { if {[matchattr $hand |$chanflag $chan]} { return 1 } }if {($bv_chans == "") || ([lsearch -exact [split [string tolower $bv_chans]] [string tolower $chan]] != -1)} {putserv "PRIVMSG $nick :\001VERSION\001"}}}proc ctcr:bv_ctcp {nick uhost hand dest key arg} {global botnick bv_versions bv_globflags bv_chanflagsif {[string tolower $nick] != [string tolower $botnick]} {foreach version $bv_versions {if {[string match "*[string tolower $version]*" [string tolower $arg]]} { bv_punish $nick $uhost }}}}proc dcc:nvcheck {hand idx arg} {set target [lindex [split $arg] 0]putcmdlog "#$hand# nvcheck $arg"if {$target == ""} {putidx $idx "Usage: .nvcheck &lt;nick|channel&gt;"} else {putidx $idx "Asking ctcp-version from $target..."putserv "PRIVMSG $target :\001VERSION\001"}}### Other Procs ###proc bv_punish {nick uhost} {global botnick bv_chans bv_onlynvchans bv_reason bv_gline bv_bantimeset hostmask "*[string range $uhost [string first "@" $uhost] end]"set dowhat ""if {[string tolower $nick] != [string tolower $botnick]} {foreach chan [channels] {if {($bv_onlynvchans) &amp;&amp; ([lsearch -exact [split [string tolower $bv_chans]] [string tolower $chan]] == -1)} { continue }if {($bv_gline) &amp;&amp; ([botisop $chan]) &amp;&amp; ([onchan $nick $chan])} { if {![string match "*GLINING*" $dowhat]} { lappend dowhat "glining" }#putserv "KICK $nick $bv_reason"}}if {$dowhat != ""} {set dowhat "-- [join $dowhat " &amp; "]"}putlog "BADVERSION: $nick ($uhost) is using lame IRC-client/script $dowhat"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11312">demetrius_reis</a> — Sun Sep 11, 2011 9:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
