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

	<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-02-25T10:45:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-02-25T10:45:00-04:00</updated>

		<published>2002-02-25T10:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4915#p4915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4915#p4915"/>
		<title type="html"><![CDATA[Someone HELP me Please!! I have big Problem with nick collid]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4915#p4915"><![CDATA[
Im using anticollide.tcl available on this site but they don't work<br><br>This is the error message:<br>[babbione] [13:11] Mass collide detected! Changing nick.. <br>[babbione] [13:11] TCL error [got_sign]: can't read "nickchange": no such variable<br><br>And this is the code of the tcl:<br><br>bind dcc n botnick dcc_botnick<br>bind dcc n randnick nickchanger<br>set keep-nick 0<br>proc dcc_botnick {hand idx argo} {<br>    if {$argo != ""} {<br>        putserv "NICK $argo"<br>        putdcc $idx "Nick changed.."<br>    }<br>    if {$argo == ""} {<br>        putdcc $idx "usage: .botnick nick"<br>    }<br>    return 1<br>}<br><br>proc nickchanger { handle idx arg } {<br>    global nickchange<br>    global keep-nick<br>    if ![info exists nickchange] { set nickchange 0 }<br>    if {$nickchange==1} {<br>        set nickchange 0<br>        putdcc $idx "Nick changing started"<br>        set keep-nick 1<br>        return 0<br>    }<br>    if {$nickchange==0} {<br>        set nickchange 1<br>        putdcc $idx "Nick changing stopped"<br>        set keep-nick 0<br>        change_nick<br>    }<br>}<br>proc change_nick {} {<br>    global nickchange<br>    if {$nickchange==1} {<br>        set temp1 [rand 10]<br>        set temp2 [rand 10]<br>        set temp3 [rand 10]<br>        set temp4 [rand 10]<br>        set temp5 [rand 10]<br>        set temp6 [rand 10]<br>        set temp7 [rand 10]<br>        set tempie ac$temp1$temp2$temp3$temp4$temp5$temp6$temp7<br>        putserv "NICK $tempie"<br>        timer 1 change_nick<br>    }<br>}<br><br>bind raw - ERROR raw:checkquit<br>bind bot - nickcollide bot:nickcollide<br>set antikill 1<br>set killcount 0<br>set lastkill 0<br>if {![info exists antikill]} { set antikill 0 }<br>if {![info exists killthresh]} { set killthresh 2 }<br>if {![info exists killtime]} { set killtime 15 }<br>bind sign - * got_sign<br>proc got_sign {nick uhost hand channel reason} {<br>    global antikill lastkill killtime killcount killthresh<br>    if {($antikill) &amp;&amp; ([regexp "Killed.* .*." $reason])} {<br>        if {([unixtime] - $lastkill) &gt; $killtime} {<br>            set lastkill [unixtime]<br>            set killcount 1<br>        } {<br>            incr killcount<br>            if {$killcount &gt;= $killthresh} {<br>                putlog "Mass collide detected! Changing nick.."<br>                change_nick<br>                set lastkill 0<br>            }<br>        }<br>    }<br>}<br><br>proc raw:checkquit { from keyword arg } {<br>    global botnick<br>    set text [string tolower $arg]<br>    set blah1 [lindex $text 0]<br>    set blah2 [lindex $text 3]<br>    set blah3 [lindex $text 6]<br>    if {$blah1 != ":closing"} { return 0 }<br>    if {$blah2 != "(killed"} { return 0 }<br>    if {$blah3 != "&lt;-"} { return 0 }<br>    putallbots "nickcollide"<br>    putlog "I was nick-collided, telling other bots!"<br>    collide:switchnick<br>}<br><br>proc bot:nickcollide {bot cmd arg} {<br>    putlog "$bot was nick collided."<br>    collide:switchnick<br>}<br><br>proc collide:switchnick { } {<br>    global nickchange keep-nick<br>    putlog "Switching nicks for the next 10 minutes"<br>    set nickchange 1<br>    set keep-nick 0<br>    change_nick<br>    timer 10 collide:end<br>}<br><br>proc collide:end { } {<br>    global nickchange keep-nick<br>    set nickchange 0<br>    set keep-nick 1<br>    putserv "NICK $botnick"<br>}<br><br>If someone is in a position to arranging the error it I pray to help me <p>Statistics: Posted by Guest — Mon Feb 25, 2002 10:45 am</p><hr />
]]></content>
	</entry>
	</feed>
