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

	<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>2003-09-04T03:23:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-04T03:23:32-04:00</updated>

		<published>2003-09-04T03:23:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26449#p26449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26449#p26449"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26449#p26449"><![CDATA[
oh thanx, good thing you said that.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Sep 04, 2003 3:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-04T03:05:08-04:00</updated>

		<published>2003-09-04T03:05:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26445#p26445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26445#p26445"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26445#p26445"><![CDATA[
You should of course convert the channel name to lower/upper case and remember to unset the kicked-variable if it existed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 04, 2003 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-04T03:00:37-04:00</updated>

		<published>2003-09-04T03:00:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26443#p26443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26443#p26443"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26443#p26443"><![CDATA[
ok thanx alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>that's pretty much what I wanted <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Sep 04, 2003 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T01:57:16-04:00</updated>

		<published>2003-09-04T01:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26436#p26436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26436#p26436"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26436#p26436"><![CDATA[
Oh, in a closer inspection of the code you've posted I've noticed that you get the channel from the reply of who.. mea culpa <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Forget my previous post <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 04, 2003 1:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-04T01:55:24-04:00</updated>

		<published>2003-09-04T01:55:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26435#p26435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26435#p26435"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26435#p26435"><![CDATA[
<blockquote class="uncited"><div>Instead of <em class="text-italics">$kicked($c)</em> should be <em class="text-italics">$kicked($chan)</em> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Uhm...no? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 04, 2003 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T01:47:35-04:00</updated>

		<published>2003-09-04T01:47:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26432#p26432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26432#p26432"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26432#p26432"><![CDATA[
Instead of <em class="text-italics">$kicked($c)</em> should be <em class="text-italics">$kicked($chan)</em> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 04, 2003 1:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-03T18:12:50-04:00</updated>

		<published>2003-09-03T18:12:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26405#p26405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26405#p26405"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26405#p26405"><![CDATA[
<blockquote class="uncited"><div>no the bot unbans himself with the need-unban feature and then rejoins the channel. and can you tell me how to catch the host using raw bind so the host matches the changed-nick ?</div></blockquote>I recommend leaving the parsing of the WHO reply to the eggdrop...if you wait for the END of /WHO, you can use "chanlist" in combination with "getchanhost" to find the offender.<br><br>In the proc triggered by the kick, store the uhost of the kicker in a variable...eg: <div class="codebox"><p>Code: </p><pre><code>set kicked($chan) $uhost</code></pre></div> and check if that variable exists for the channel when you recieve the raw 315:<div class="codebox"><p>Code: </p><pre><code>bind raw - 315 endofwhoproc endofwho {f k a} {  global kicked  set c [lindex [split $a] 1]  if {[info exists kicked($c)]} {    foreach n [chanlist $c] {      if {[string eq -nocase $kicked($c) [getchanhost $n $c]]} {        # $n's the one!      }    }  }}</code></pre></div>Was that clear?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 03, 2003 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-03T16:33:37-04:00</updated>

		<published>2003-09-03T16:33:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26391#p26391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26391#p26391"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26391#p26391"><![CDATA[
no the bot unbans himself with the need-unban feature and then rejoins the channel. and can you tell me how to catch the host using raw bind so the host matches the changed-nick ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Sep 03, 2003 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-03T15:24:17-04:00</updated>

		<published>2003-09-03T15:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26374#p26374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26374#p26374"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26374#p26374"><![CDATA[
I'm not familiar with chanserv, but I take it your bot will be able to rejoin even if it was banned, and then you can use the uhost of the kicker to match against the hosts of the persons on the channel. Eggdrop does a /WHO on join by default to get the hosts of all the people in the channel, so making a raw bind for the "End of /who" numeric would probably be the best way to ensure you don't try to "getchanhost" before this info is fetched.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 03, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-03T15:23:00-04:00</updated>

		<published>2003-09-03T15:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26371#p26371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26371#p26371"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26371#p26371"><![CDATA[
The nickserv thing is a lil triky.. so when $nick kicks the bot he got his nick and host, so doing an who or an simple whois on $nick and then compare the host that results from whois with the mask that he has from the kick proc and if it's a match then do the why thing, or something like this. Duno how chanserv operates so I can't get an verry acurate answer/example.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 03, 2003 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-03T15:15:38-04:00</updated>

		<published>2003-09-03T15:15:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26368#p26368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26368#p26368"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26368#p26368"><![CDATA[
when $nick deops/kicks the bot. the bot privmsg chanserv to deop $nick and then privmsg chanserv why $chan $nick in order to catch his access to delete. but if $nick changed his nick then the bot can't do those commands because chanserv will not find the nick online. so the bot must catch the notice that the nick is not online (which is not hard). then he does a /who on $chan to catch the recorded user@host if found any match then he does the deop and why....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Sep 03, 2003 3:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-03T15:00:41-04:00</updated>

		<published>2003-09-03T15:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26364#p26364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26364#p26364"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26364#p26364"><![CDATA[
What exactly are you trying to do to the person kicking the bot?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 03, 2003 3:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-03T14:55:27-04:00</updated>

		<published>2003-09-03T14:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26363#p26363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26363#p26363"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26363#p26363"><![CDATA[
oh so what you mean, is that if chanserv that $nick is not online, then the bot does a who on $chan if there is a host match with the $nick, then he will perform the proc on the new nick detected?<br><br>how can that be done ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Sep 03, 2003 2:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-03T14:46:45-04:00</updated>

		<published>2003-09-03T14:46:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26359#p26359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26359#p26359"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26359#p26359"><![CDATA[
I see that you didn't got my point. When the kick, deop or whatever proc is triggered you have it's nick and host, right? Then, do a whois his nick and compare the host that comes out (if any) if he didn't changed the nick and if he changed it then do the whowas nick and you'll get it's new nick. Something like this anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 03, 2003 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-03T14:43:25-04:00</updated>

		<published>2003-09-03T14:43:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26356#p26356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26356#p26356"/>
		<title type="html"><![CDATA[Some help detecting if nick changed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26356#p26356"><![CDATA[
<blockquote class="uncited"><div>well if he changed his nick then you can't whois him, and we don't know the new nick to do a whowas, am I right ?</div></blockquote>Why do you need to whois him?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 03, 2003 2:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
