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

	<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>2023-08-13T07:13:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-13T07:13:29-04:00</updated>

		<published>2023-08-13T07:13:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112083#p112083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112083#p112083"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112083#p112083"><![CDATA[
ok it's fine, I've tried it and now it works fine.<br><div class="codebox"><p>Code: </p><pre><code>bind raw - notice check:versionbind ctcr - VERSION version:replyproc check:version {from key text} {   global cversion   if {[string match *!*@* $from]} { return 0 } {   if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt; port class nick ident host ip realname]} { return 0 }   if {[lsearch -regexp $nick] ne -1} { return }   set text [split $text]   set cversion([string tolower $nick]) 1   putserv "PRIVMSG $nick :\001VERSION\001"   # Timer to addutimer 5 [list no:version:reply $nick]  }}proc version:reply {nick uhost hand dest kw arg} { global cversion if {[info exists cversion([string tolower $nick])]} {  unset cversion([string tolower $nick]) }}proc no:version:reply {nick} {   global cversion   if {[info exists cversion([string tolower $nick])]} {   unset cversion([string tolower $nick])      putserv "gline $nick 5m :ta ta"   }}</code></pre></div>I have to say that with eggdrop in clone attack it does create a lot of lag , but ... I have mounted it in sbnc and now it has no lag .<br><br>Thank you very much CrazyCat , I have touched your code but I think it works .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Sun Aug 13, 2023 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-08-12T09:56:33-04:00</updated>

		<published>2023-08-12T09:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112082#p112082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112082#p112082"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112082#p112082"><![CDATA[
Underdstood. A closing bracket you probably add in the ctcp proc messed up the script.<br><br>Good version:<div class="codebox"><p>Code: </p><pre><code>proc ctcp {from key text} {   global cversion   if {[string match *!*@* $from]} { return 0 }   if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt; port class nick ident host ip realname]} { return 0 }   if {[lsearch -regexp $nick] ne -1} { return }   set text [split $text]   set cversion([string tolower $nick]) 10   putserv "PRIVMSG $nick :\001VERSION\001"   # Timer to add   utimer 15 [list no:version:reply nick host]  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Aug 12, 2023 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-11T17:51:21-04:00</updated>

		<published>2023-08-11T17:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112081#p112081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112081#p112081"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112081#p112081"><![CDATA[
oh that's right, I made a mistake about ctcp...<br><blockquote class="uncited"><div>23:26:15 pell   [23:21:38] -NOTICE- *** CONNECT: Client connecting on port 6667 (class main): Guest-98765!<a href="mailto:Guest@XX.XX.XX.XX">Guest@XX.XX.XX.XX</a> (XX.XX.XX.XX) [...]<br>23:26:15 pell   [23:21:39] Tcl error [version:reply]: invalid command name "version:reply"<br>23:26:15 pell   [23:21:39] CTCP reply VERSION: mIRC v7.36 Khaled Mardam-Bey from Guest-98765 (<a href="mailto:Guest@egg-9hl.fe7.r1tsib.IP">Guest@egg-9hl.fe7.r1tsib.IP</a>) to pell<br>23:26:29 pell   [23:21:53] Tcl error in script for 'timer95':<br>23:26:29 pell   [23:21:53] invalid command name "no:version:reply"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Fri Aug 11, 2023 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-08-11T17:29:08-04:00</updated>

		<published>2023-08-11T17:29:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112080#p112080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112080#p112080"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112080#p112080"><![CDATA[
Simo is right, you have to do:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $nick :\001VERSION\001"</code></pre></div>And concerning your error: can you show us your complete script ? If you only have the small piece of code which is in this thread, this error is weird. Or you have a typo somewhere.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Aug 11, 2023 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-08-11T16:28:14-04:00</updated>

		<published>2023-08-11T16:28:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112079#p112079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112079#p112079"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112079#p112079"><![CDATA[
Also u seem to use ping to check version<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Aug 11, 2023 4:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-11T15:29:03-04:00</updated>

		<published>2023-08-11T15:29:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112078#p112078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112078#p112078"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112078#p112078"><![CDATA[
I confess that this was what I did the first time but the timer didn't work...<br><blockquote class="uncited"><div>Tcl error in script for 'timer83':<br>invalid command name "no:version:reply"</div></blockquote><br>like this for all connections, utimer error...<br><br>Thank you very much CrazyCat.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Fri Aug 11, 2023 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-08-11T02:07:49-04:00</updated>

		<published>2023-08-11T02:07:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112077#p112077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112077#p112077"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112077#p112077"><![CDATA[
Your no:version:reply is never called.<br><br>Add a timer to run it after a reasonable delay:<div class="codebox"><p>Code: </p><pre><code>proc ctcp {from key text} {   global cversion   if {[string match *!*@* $from]} { return 0 }   if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt; port class nick ident host ip realname]} { return 0 }   if {[lsearch -regexp $nick] ne -1} { return }    set text [split $text]   set cversion([string tolower $nick]) 10   putserv "PRIVMSG $nick :\001ping\001"   # Timer to add   utimer 15 [list no:version:reply nick host]  }  return 0}proc no:version:reply {nick uhost} {   global cversion   if {[info exists cversion([string tolower $nick])]} {      #putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"      #putserv "KICK $chan $nick :No CTCP version reply"      putserv "Gline $nick :no ctcp"      unset cversion([string tolower $nick])   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Aug 11, 2023 2:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-10T14:09:40-04:00</updated>

		<published>2023-08-10T14:09:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112076#p112076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112076#p112076"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112076#p112076"><![CDATA[
I want to continue this post to see if what I want to do is possible...<br>Following the post with the ctcp on join chan (it works perfectly) I need it to work on connect to the server.<br><br>Currently it works to inspire the ctcp but it doesn't work for it to be positive or negative.<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind raw - notice ctcpbind ctcr - VERSION version:replyproc ctcp {from key text} {global cversionif {[string match *!*@* $from]} { return 0 }        if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt; port class nick ident host ip realname]} { return 0 }      if {[lsearch -regexp $nick] ne -1} { return }    set text [split $text]set cversion([string tolower $nick]) 10    putserv "PRIVMSG $nick :\001ping\001"  }  return 0}proc version:reply {nick uhost hand dest kw arg} { global cversion if {[info exists cversion([string tolower $nick])]} {  unset cversion([string tolower $nick]) }}proc no:version:reply {nick} { global cversion if {[info exists cversion([string tolower $nick])]} {  #putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"  #putserv "KICK $chan $nick :No CTCP version reply"  putserv "Gline $nick :no ctcp"  unset cversion([string tolower $nick])  }}</code></pre></div>Ctcp on connect if it works, but it doesn't know anything else...<br>Thank you very much for the help .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Thu Aug 10, 2023 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2019-04-30T17:20:44-04:00</updated>

		<published>2019-04-30T17:20:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107633#p107633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107633#p107633"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107633#p107633"><![CDATA[
I would set the utimer to maybe 30 or even 45 seconds as some people connecting to a network may experience lag between themselves and the bot, and if no version was received or late received, it would kick and ban the user for that.<br><br>Might be a better idea for the bot to message a channel op on kick letting them know that this user was kicked and when for ctcp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Tue Apr 30, 2019 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLLq]]></name></author>
		<updated>2019-04-27T18:04:55-04:00</updated>

		<published>2019-04-27T18:04:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107627#p107627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107627#p107627"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107627#p107627"><![CDATA[
if right.<br>Thank you very much for answering<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12797">PeLLq</a> — Sat Apr 27, 2019 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-04-27T16:58:53-04:00</updated>

		<published>2019-04-27T16:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107626#p107626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107626#p107626"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107626#p107626"><![CDATA[
so ur bot is opered ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Apr 27, 2019 4:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLLq]]></name></author>
		<updated>2019-04-26T12:06:38-04:00</updated>

		<published>2019-04-26T12:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107624#p107624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107624#p107624"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107624#p107624"><![CDATA[
Hello greetings.<br>I am looking for a TCL that can make ctcp version on connect.<br>And if you can ignore webchat or webchat user modes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12797">PeLLq</a> — Fri Apr 26, 2019 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-03-08T02:31:17-04:00</updated>

		<published>2019-03-08T02:31:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107527#p107527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107527#p107527"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107527#p107527"><![CDATA[
You two realize this is an old topic? Open a new topic and link to this if you really have to and let this one rest in the Archives. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>@PeLL If you add 'ignore idents' on a large channel you will have a huge ignore list in no time. What do you want to achieve? What's the issue?<br><br>@Dominatez : The error you get has nothing to do with this since there's no <em class="text-italics">ctcpvers</em> function nor <em class="text-italics">verschan</em> is used in here. Look in your other scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Mar 08, 2019 2:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2019-03-07T16:05:27-04:00</updated>

		<published>2019-03-07T16:05:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107522#p107522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107522#p107522"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107522#p107522"><![CDATA[
I am getting the following error.<br><br>Tcl error [ctcpvers]: can't read "::verschan": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Thu Mar 07, 2019 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2019-02-28T16:55:02-04:00</updated>

		<published>2019-02-28T16:55:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107490#p107490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107490#p107490"/>
		<title type="html"><![CDATA[ctcp no version reply help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107490#p107490"><![CDATA[
It works very well<br>Can you add to ignore idents?<br>Large channel much lag.<br>Thank you .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Thu Feb 28, 2019 4:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
