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

	<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>2010-01-19T07:50:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-19T07:50:45-04:00</updated>

		<published>2010-01-19T07:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91744#p91744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91744#p91744"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91744#p91744"><![CDATA[
Thanks dude. Looks like it was a problem with the way I made the bind. Works fine, now.<br><br>Thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Tue Jan 19, 2010 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-19T03:15:32-04:00</updated>

		<published>2010-01-19T03:15:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91743#p91743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91743#p91743"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91743#p91743"><![CDATA[
This is the proc i use to catch ctcp reply's <div class="codebox"><p>Code: </p><pre><code>proc ctcr:something {nick uhost hand dest keyword text} { if {$keyword == "VERSION"} {  ...do something }} bind ctcr -|- "*" proc ctcr:something</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Jan 19, 2010 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-18T12:40:44-04:00</updated>

		<published>2010-01-18T12:40:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91732#p91732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91732#p91732"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91732#p91732"><![CDATA[
The bots version is v1.6.18.<br><br>For some reason it isn't the latest, I've a few bots and must have forgot. I'll update it now and see if *.19 fixes anything and I'll edit this post.<br><br>edit: Upgraded, but not a problem with version I see. Unless, I'm using outdated code or something which I don't think I am, but I could be wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Mon Jan 18, 2010 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-18T12:18:44-04:00</updated>

		<published>2010-01-18T12:18:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91731#p91731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91731#p91731"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91731#p91731"><![CDATA[
'k, that means the binding has yet not been triggered. Which version of eggdrop are you using, if I may ask?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jan 18, 2010 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-18T11:19:12-04:00</updated>

		<published>2010-01-18T11:19:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91730#p91730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91730#p91730"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91730#p91730"><![CDATA[
Sure. <br><blockquote class="uncited"><div>&lt;(eggdrop&gt;   TYPE FLGS     COMMAND              HITS BINDING (TCL)<br>&lt;(eggdrop&gt;   ctcr -|-      VERSION                 0 version:reply</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Mon Jan 18, 2010 11:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-18T10:52:21-04:00</updated>

		<published>2010-01-18T10:52:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91729#p91729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91729#p91729"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91729#p91729"><![CDATA[
Could you issue the command <strong class="text-strong">.binds ctcr all</strong> on your dcc chat partyline, and post the output here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jan 18, 2010 10:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-18T10:18:29-04:00</updated>

		<published>2010-01-18T10:18:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91728#p91728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91728#p91728"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91728#p91728"><![CDATA[
Man this has me stumped. I've tried to test if there are any errors yet there aren't, nothing coming up in logs at all. Just looking at the code it should work, but for some reason it isn't kicking on bad version from the user.<br><br>It will version them if the isp and state match, but it won't carry out the second proc at all for some reason, yet it should. I removed the extra argument, and I tried to catch any errors but there aren't any.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Mon Jan 18, 2010 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-17T22:57:34-04:00</updated>

		<published>2010-01-17T22:57:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91722#p91722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91722#p91722"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91722#p91722"><![CDATA[
Next step then would be to add various putlogs for debugging, as to see what is actually going on in your script...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 17, 2010 10:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-17T22:05:46-04:00</updated>

		<published>2010-01-17T22:05:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91721#p91721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91721#p91721"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91721#p91721"><![CDATA[
Hmm, still doesn't work.<br><br>Thanks for the reply, though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Sun Jan 17, 2010 10:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-17T20:45:46-04:00</updated>

		<published>2010-01-17T20:45:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91719#p91719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91719#p91719"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91719#p91719"><![CDATA[
There seems to be one argument too many in your version:reply proc... drop the chan argument.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 17, 2010 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[barcode]]></name></author>
		<updated>2010-01-17T20:13:16-04:00</updated>

		<published>2010-01-17T20:13:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91715#p91715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91715#p91715"/>
		<title type="html"><![CDATA[Help with ctcp version (version works, outcome doesn't)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91715#p91715"><![CDATA[
Hey, I managed to get my bot to version anyone connecting from a specific isp, which is good because that's what I wanted. However, I also want it to ban depending on what the version reply is.<br><br>Yes I know that's a silly way, but this isn't a typical ban on version deal. Basically we only have two people who connect from the same isp and same state, one of them uses mibbit so it is easy to pick them apart.<br><div class="codebox"><p>Code: </p><pre><code>bind ctcr - VERSION version:replybind join - * check:versionproc check:version {nick host hand chan} { global cversion set cversion([string tolower $nick]) 1 if {[string match -nocase "*@*.state.isp.net" $host]} {  putserv "privmsg $nick :\001VERSION\001" }}proc version:reply {nick host hand chan dest kw arg} { global cversion if {[isbotnick $dest] &amp;&amp; [info exists cversion([string tolower $nick])] &amp;&amp; [onchan $nick $chan]} {   if {[string match -nocase "*their version reply*" $arg]} {   putserv "KICK $chan $nick :lol"   unset cversion([string tolower $nick])  } }}</code></pre></div>Okay it only says kick there as I was only using kick for testing, but for some reason it doesn't kick o.0 I have tried a few edits to the version:reply proc but i can't get it to do it. I am by no means a pro, in fact I'm still fairly new to tcl, although I am decent at editing and making a few small scripts for my eggdrop. I am sure you can tell all that, I've most probably made a stupid mistake or I have overlooked something.<br><br>All I need it to do is kick the user if the version reply matches the version reply of the user I want kicked. I'll add the ban syntax in myself, and like I said I got it to only version someone from a specific isp in a specific state, it's just the outcome if version matches the bad one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11063">barcode</a> — Sun Jan 17, 2010 8:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
